diff --git a/include/bx/crtimpl.h b/include/bx/crtimpl.h index a482033..71b9e61 100644 --- a/include/bx/crtimpl.h +++ b/include/bx/crtimpl.h @@ -194,10 +194,10 @@ namespace bx #if BX_CONFIG_CRT_PROCESS -#if BX_COMPILER_MSVC_COMPATIBLE +#if BX_CRT_MSVC # define popen _popen # define pclose _pclose -#endif // BX_COMPILER_MSVC_COMPATIBLE +#endif // BX_CRT_MSVC class ProcessReader : public ReaderOpenI, public CloserI, public ReaderI { diff --git a/include/bx/macros.h b/include/bx/macros.h index b4eaeae..e8780b1 100644 --- a/include/bx/macros.h +++ b/include/bx/macros.h @@ -79,9 +79,9 @@ # define BX_THREAD_LOCAL __thread # endif // BX_COMPILER_GCC # define BX_ATTRIBUTE(_x) __attribute__( (_x) ) -# if BX_COMPILER_MSVC_COMPATIBLE +# if BX_CRT_MSVC # define __stdcall -# endif // BX_COMPILER_MSVC_COMPATIBLE +# endif // BX_CRT_MSVC #elif BX_COMPILER_MSVC # define BX_ALIGN_DECL(_align, _decl) __declspec(align(_align) ) _decl # define BX_ALLOW_UNUSED diff --git a/include/bx/os.h b/include/bx/os.h index 9794baf..6e70b30 100644 --- a/include/bx/os.h +++ b/include/bx/os.h @@ -56,11 +56,11 @@ # endif // BX_PLATFORM_ANDROID #endif // BX_PLATFORM_ -#if BX_COMPILER_MSVC_COMPATIBLE +#if BX_CRT_MSVC # include // _getcwd #else # include // getcwd -#endif // BX_COMPILER_MSVC +#endif // BX_CRT_MSVC #if BX_PLATFORM_OSX # define BX_DL_EXT "dylib" @@ -254,7 +254,7 @@ namespace bx || BX_PLATFORM_WINRT BX_UNUSED(_path); return -1; -#elif BX_COMPILER_MSVC_COMPATIBLE +#elif BX_CRT_MSVC return ::_chdir(_path); #else return ::chdir(_path); @@ -268,7 +268,7 @@ namespace bx || BX_PLATFORM_WINRT BX_UNUSED(_buffer, _size); return NULL; -#elif BX_COMPILER_MSVC_COMPATIBLE +#elif BX_CRT_MSVC return ::_getcwd(_buffer, (int)_size); #else return ::getcwd(_buffer, _size); diff --git a/include/bx/platform.h b/include/bx/platform.h index 295ff44..ce5365e 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -15,7 +15,6 @@ #define BX_COMPILER_CLANG_ANALYZER 0 #define BX_COMPILER_GCC 0 #define BX_COMPILER_MSVC 0 -#define BX_COMPILER_MSVC_COMPATIBLE (BX_CRT_MSVC) // Endianess #define BX_CPU_ENDIAN_BIG 0 diff --git a/include/bx/readerwriter.h b/include/bx/readerwriter.h index 5460505..bed18d0 100644 --- a/include/bx/readerwriter.h +++ b/include/bx/readerwriter.h @@ -16,7 +16,7 @@ #include "error.h" #include "uint32_t.h" -#if BX_COMPILER_MSVC_COMPATIBLE +#if BX_CRT_MSVC # define fseeko64 _fseeki64 # define ftello64 _ftelli64 #elif BX_PLATFORM_ANDROID || BX_PLATFORM_BSD || BX_PLATFORM_IOS || BX_PLATFORM_OSX || BX_PLATFORM_QNX diff --git a/include/bx/string.h b/include/bx/string.h index 937f15d..1bd3225 100644 --- a/include/bx/string.h +++ b/include/bx/string.h @@ -30,7 +30,7 @@ namespace bx /// Case insensitive string compare. inline int32_t stricmp(const char* _a, const char* _b) { -#if BX_COMPILER_MSVC_COMPATIBLE +#if BX_CRT_MSVC return ::_stricmp(_a, _b); #else return ::strcasecmp(_a, _b);