File tree 2 files changed +20
-9
lines changed
2 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -361,10 +361,14 @@ namespace bx
361
361
362
362
bool stat (const FilePath& _filePath, FileInfo& _outFileInfo)
363
363
{
364
+ #if BX_CRT_NONE
365
+ BX_UNUSED (_filePath, _outFileInfo);
366
+ return false ;
367
+ #else
364
368
_outFileInfo.m_size = 0 ;
365
369
_outFileInfo.m_type = FileInfo::Count;
366
370
367
- #if BX_COMPILER_MSVC
371
+ # if BX_COMPILER_MSVC
368
372
struct ::_stat64 st;
369
373
int32_t result = ::_stat64 (_filePath.get (), &st);
370
374
@@ -381,7 +385,7 @@ namespace bx
381
385
{
382
386
_outFileInfo.m_type = FileInfo::Directory;
383
387
}
384
- #else
388
+ # else
385
389
struct ::stat st;
386
390
int32_t result = ::stat (_filePath.get (), &st);
387
391
if (0 != result)
@@ -397,11 +401,12 @@ namespace bx
397
401
{
398
402
_outFileInfo.m_type = FileInfo::Directory;
399
403
}
400
- #endif // BX_COMPILER_MSVC
404
+ # endif // BX_COMPILER_MSVC
401
405
402
406
_outFileInfo.m_size = st.st_size ;
403
407
404
408
return true ;
409
+ #endif // BX_CRT_NONE
405
410
}
406
411
407
412
} // namespace bx
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ namespace bx
70
70
#if BX_PLATFORM_WINDOWS
71
71
::Sleep (_ms);
72
72
#elif BX_PLATFORM_XBOXONE \
73
- || BX_PLATFORM_WINRT
73
+ || BX_PLATFORM_WINRT \
74
+ || BX_CRT_NONE
74
75
BX_UNUSED (_ms);
75
76
debugOutput (" sleep is not implemented" ); debugBreak ();
76
77
#else
@@ -85,7 +86,8 @@ namespace bx
85
86
#if BX_PLATFORM_WINDOWS
86
87
::SwitchToThread ();
87
88
#elif BX_PLATFORM_XBOXONE \
88
- || BX_PLATFORM_WINRT
89
+ || BX_PLATFORM_WINRT \
90
+ || BX_CRT_NONE
89
91
debugOutput (" yield is not implemented" ); debugBreak ();
90
92
#else
91
93
::sched_yield ();
@@ -224,7 +226,8 @@ namespace bx
224
226
return result;
225
227
#elif BX_PLATFORM_PS4 \
226
228
|| BX_PLATFORM_XBOXONE \
227
- || BX_PLATFORM_WINRT
229
+ || BX_PLATFORM_WINRT \
230
+ || BX_CRT_NONE
228
231
BX_UNUSED (_name, _out, _inOutSize);
229
232
return false ;
230
233
#else
@@ -253,7 +256,8 @@ namespace bx
253
256
::SetEnvironmentVariableA (_name, _value);
254
257
#elif BX_PLATFORM_PS4 \
255
258
|| BX_PLATFORM_XBOXONE \
256
- || BX_PLATFORM_WINRT
259
+ || BX_PLATFORM_WINRT \
260
+ || BX_CRT_NONE
257
261
BX_UNUSED (_name, _value);
258
262
#else
259
263
::setenv (_name, _value, 1 );
@@ -266,7 +270,8 @@ namespace bx
266
270
::SetEnvironmentVariableA (_name, NULL );
267
271
#elif BX_PLATFORM_PS4 \
268
272
|| BX_PLATFORM_XBOXONE \
269
- || BX_PLATFORM_WINRT
273
+ || BX_PLATFORM_WINRT \
274
+ || BX_CRT_NONE
270
275
BX_UNUSED (_name);
271
276
#else
272
277
::unsetenv (_name);
@@ -277,7 +282,8 @@ namespace bx
277
282
{
278
283
#if BX_PLATFORM_PS4 \
279
284
|| BX_PLATFORM_XBOXONE \
280
- || BX_PLATFORM_WINRT
285
+ || BX_PLATFORM_WINRT \
286
+ || BX_CRT_NONE
281
287
BX_UNUSED (_path);
282
288
return -1 ;
283
289
#elif BX_CRT_MSVC
You can’t perform that action at this time.
0 commit comments