AlarmNotifications
PANDA Slow Control Alarm Daemon
Main Page
Namespaces
Classes
Files
File List
File Members
oldgcccompat.h
Go to the documentation of this file.
1
34
#ifndef OLDGCCCOMPAT_H
35
#define OLDGCCCOMPAT_H
36
37
#ifndef DOXYGEN // Small hack to make compatibility macros visible to doxygen although doxygen simulates a GCC 4.8 compiler
38
#define DOXYGEN 0
39
#endif
40
41
// Minimum requirement for noexcept and nullptr keyword is GCC 4.6
42
#if ( __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 6 ) || DOXYGEN == 1 ) // Make macro visible to documentation
43
48
#define OLDGCC46COMPAT 1
49
52
#define noexcept throw()
53
56
#define nullptr NULL
57
#else
58
#define OLDGCC46COMPAT 0 // Disable compatibility mode
59
#endif
60
61
// Minimum requirement for final classes and methods is GCC 4.7
62
#if ( __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 7 ) || DOXYGEN == 1 ) // Make macro visible to documentation
63
68
#define OLDGCC47COMPAT 1
69
72
#define final
73
#else
74
#define OLDGCC47COMPAT 0 // Disable compatibility mode
75
#endif
76
77
78
#endif // OLDGCCCOMPAT_H
Generated by
1.8.11