mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Introduce C++11 compatibility macro for gcc < 4.6
This commit is contained in:
parent
286e7e0b1a
commit
541b1ea498
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user