mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Added __cpluplus check for GCC to disable constexpr similarly to VS2015 check (#202)
This commit is contained in:
committed by
Бранимир Караџић
parent
1286026ad9
commit
d021b3a49f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user