00001
00034 #ifndef OLDGCCCOMPAT_H
00035 #define OLDGCCCOMPAT_H
00036
00037 #ifndef DOXYGEN // Small hack to make compatibility macros visible to doxygen although doxygen simulates a GCC 4.8 compiler
00038 #define DOXYGEN 0
00039 #endif
00040
00041
00042 #if ( __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 6 ) || DOXYGEN == 1 ) // Make macro visible to documentation
00043
00048 #define OLDGCC46COMPAT 1
00049
00052 #define noexcept throw()
00053
00056 #define nullptr NULL
00057 #else
00058 #define OLDGCC46COMPAT 0 // Disable compatibility mode
00059 #endif
00060
00061
00062 #if ( __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 7 ) || DOXYGEN == 1 ) // Make macro visible to documentation
00063
00068 #define OLDGCC47COMPAT 1
00069
00072 #define final
00073 #else
00074 #define OLDGCC47COMPAT 0 // Disable compatibility mode
00075 #endif
00076
00077
00078 #endif // OLDGCCCOMPAT_H