Introduce C++11 compatibility macro for gcc < 4.6

This commit is contained in:
Gioacchino Mazzurco 2017-07-31 18:26:51 +02:00
parent 286e7e0b1a
commit 541b1ea498

View File

@ -18,8 +18,12 @@
*/ */
#ifdef __GNUC__ #ifdef __GNUC__
# if __GNUC__*100 + __GNUC_MINOR__ < 40700 # define GCC_VERSION (__GNUC__*10000+__GNUC_MINOR__*100+__GNUC_PATCHLEVEL__)
# if GCC_VERSION < 40700
# define override # define override
# define final # define final
# endif //GCC version # endif // GCC version < 40700
# if GCC_VERSION < 40600
# define nullptr NULL
# endif // GCC_VERSION < 40600
#endif //defined GNUC #endif //defined GNUC