mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Introduce C++11 compatibility macro for gcc < 4.6
This commit is contained in:
parent
286e7e0b1a
commit
541b1ea498
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue