Added __cpluplus check for GCC to disable constexpr similarly to VS2015 check (#202)

This commit is contained in:
alekseyt
2019-03-16 17:46:51 +02:00
committed by Бранимир Караџић
parent 1286026ad9
commit d021b3a49f

View File

@@ -115,7 +115,7 @@
/// The return value of the function is solely a function of the arguments.
///
#if BX_COMPILER_MSVC && (BX_COMPILER_MSVC <= 1900)
#if (BX_COMPILER_MSVC && (BX_COMPILER_MSVC <= 1900)) || (BX_COMPILER_GCC && (__cplusplus < 201402L))
# define BX_CONSTEXPR_FUNC BX_CONST_FUNC
#else
# define BX_CONSTEXPR_FUNC constexpr BX_CONST_FUNC