diff --git a/include/bx/config.h b/include/bx/config.h index 1df378d..dea60b9 100644 --- a/include/bx/config.h +++ b/include/bx/config.h @@ -12,22 +12,6 @@ # define BX_CONFIG_ALLOCATOR_DEBUG 0 #endif // BX_CONFIG_DEBUG_ALLOC -#ifndef BX_CONFIG_CRT_FILE_READER_WRITER -# define BX_CONFIG_CRT_FILE_READER_WRITER !(0 \ - || BX_CRT_NONE \ - ) -#endif // BX_CONFIG_CRT_FILE_READER_WRITER - -#ifndef BX_CONFIG_CRT_PROCESS -# define BX_CONFIG_CRT_PROCESS !(0 \ - || BX_CRT_NONE \ - || BX_PLATFORM_EMSCRIPTEN \ - || BX_PLATFORM_PS4 \ - || BX_PLATFORM_WINRT \ - || BX_PLATFORM_XBOXONE \ - ) -#endif // BX_CONFIG_CRT_PROCESS - #ifndef BX_CONFIG_SUPPORTS_THREADING # define BX_CONFIG_SUPPORTS_THREADING !(0 \ || BX_PLATFORM_EMSCRIPTEN \ diff --git a/src/crtimpl.cpp b/src/crtimpl.cpp index 2cc62f7..8466509 100644 --- a/src/crtimpl.cpp +++ b/src/crtimpl.cpp @@ -8,6 +8,22 @@ #include #include +#ifndef BX_CONFIG_CRT_FILE_READER_WRITER +# define BX_CONFIG_CRT_FILE_READER_WRITER !(0 \ + || BX_CRT_NONE \ + ) +#endif // BX_CONFIG_CRT_FILE_READER_WRITER + +#ifndef BX_CONFIG_CRT_PROCESS +# define BX_CONFIG_CRT_PROCESS !(0 \ + || BX_CRT_NONE \ + || BX_PLATFORM_EMSCRIPTEN \ + || BX_PLATFORM_PS4 \ + || BX_PLATFORM_WINRT \ + || BX_PLATFORM_XBOXONE \ + ) +#endif // BX_CONFIG_CRT_PROCESS + namespace bx { DefaultAllocator::DefaultAllocator()