| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
#ifndef PRAGMA_H |
| 24 |
#define PRAGMA_H |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
#if defined(__GNUC__) |
| 30 |
# if __GNUC__ > 4 |
| 31 |
# define PRAGMA_DIAG_PUSH _Pragma("GCC diagnostic push") |
| 32 |
# define PRAGMA_DIAG_POP _Pragma("GCC diagnostic pop") |
| 33 |
# define PRAGMA_(x) _Pragma(#x) |
| 34 |
# define PRAGMA_DIAG_IGNORED(x) PRAGMA_(GCC diagnostic ignored x) |
| 35 |
# elif __GNUC__ == 4 |
| 36 |
# if __GNUC_MINOR__ >= 6 |
| 37 |
# define PRAGMA_DIAG_PUSH _Pragma("GCC diagnostic push") |
| 38 |
# define PRAGMA_DIAG_POP _Pragma("GCC diagnostic pop") |
| 39 |
# define PRAGMA_(x) _Pragma(#x) |
| 40 |
# define PRAGMA_DIAG_IGNORED(x) PRAGMA_(GCC diagnostic ignored x) |
| 41 |
# else |
| 42 |
# define PRAGMA_DIAG_PUSH |
| 43 |
# define PRAGMA_DIAG_POP |
| 44 |
# define PRAGMA_(x) _Pragma(#x) |
| 45 |
# define PRAGMA_DIAG_IGNORED(x) PRAGMA_(GCC diagnostic ignored x) |
| 46 |
# endif |
| 47 |
# else |
| 48 |
# define PRAGMA_DIAG_PUSH |
| 49 |
# define PRAGMA_DIAG_POP |
| 50 |
# define PRAGMA_DIAG_IGNORED(x) |
| 51 |
# endif |
| 52 |
#else |
| 53 |
# define PRAGMA_DIAG_PUSH |
| 54 |
# define PRAGMA_DIAG_POP |
| 55 |
# define PRAGMA_DIAG_IGNORED(x) |
| 56 |
#endif |
| 57 |
|
| 58 |
#endif |