diff --git a/include/bx/platform.h b/include/bx/platform.h index ff5ee00..66f15f9 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -453,9 +453,9 @@ #endif // BX_ARCH_ #if defined(__cplusplus) -# if defined(_MSVC_LANG) && _MSVC_LANG != __cplusplus +# if BX_COMPILER_MSVC && defined(_MSVC_LANG) && _MSVC_LANG != __cplusplus # error "When using MSVC you must set /Zc:__cplusplus compiler option." -# endif // defined(_MSVC_LANG) && _MSVC_LANG != __cplusplus +# endif // BX_COMPILER_MSVC && defined(_MSVC_LANG) && _MSVC_LANG != __cplusplus # if __cplusplus < BX_LANGUAGE_CPP17 # error "C++17 standard support is required to build."