diff --git a/libretroshare/src/util/cxx11retrocompat.h b/libretroshare/src/util/cxx11retrocompat.h index e4d72525c..587b1374d 100644 --- a/libretroshare/src/util/cxx11retrocompat.h +++ b/libretroshare/src/util/cxx11retrocompat.h @@ -18,8 +18,12 @@ */ #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 final -# endif //GCC version +# endif // GCC version < 40700 +# if GCC_VERSION < 40600 +# define nullptr NULL +# endif // GCC_VERSION < 40600 #endif //defined GNUC