diff options
| author | 2015-12-15 11:00:42 +0000 | |
|---|---|---|
| committer | 2015-12-15 11:00:42 +0000 | |
| commit | 32582df9de2023eeee8b1360dfe5901068f7371a (patch) | |
| tree | 658a326cd6149a5b00df081e6619c9abbd5af394 /gb.h | |
| parent | Allow for no <stdio.h> (diff) | |
Remove C++ specific macros
Diffstat (limited to 'gb.h')
| -rw-r--r-- | gb.h | 21 |
1 files changed, 2 insertions, 19 deletions
@@ -1,4 +1,4 @@ -/* gb.h - v0.04 - public domain C helper library - no warranty implied; use at your own risk */ +/* gb.h - v0.04a - public domain C helper library - no warranty implied; use at your own risk */ /* (Experimental) A C helper library geared towards game development */ /* @@ -15,7 +15,7 @@ /* Version History: - + 0.04a - Remove C++ specific macros 0.04 - Allow for no <stdio.h> 0.03 - Allocators can be passed to gb_alloc/free/etc. without cast using `typedef void *gb_Allocator_Ptr` 0.02 - Implement all functions (from gb.hpp) @@ -148,23 +148,6 @@ extern "C" { #define GB_IS_POWER_OF_TWO(x) ((x) != 0) && !((x) & ((x) - 1)) - -#if !defined(GB_HAS_NO_CONSTEXPR) - #if defined(_GNUC_VER) && _GNUC_VER < 406 /* Less than gcc 4.06 */ - #define GB_HAS_NO_CONSTEXPR 1 - #elif defined(_MSC_VER) && _MSC_VER < 1900 /* Less than Visual Studio 2015/MSVC++ 14.0 */ - #define GB_HAS_NO_CONSTEXPR 1 - #elif !defined(__GXX_EXPERIMENTAL_CXX0X__) && __cplusplus < 201103L - #define GB_HAS_NO_CONSTEXPR 1 - #endif -#endif - -#if defined(GB_HAS_NO_CONSTEXPR) - #define GB_CONSTEXPR -#else - #define GB_CONSTEXPR constexpr -#endif - #ifndef GB_FORCE_INLINE #if defined(_MSC_VER) #define GB_FORCE_INLINE __forceinline |
