GUI: reduce vertical size of the toolbar area
[gnumeric.git] / src / compilation.h
blobff8089c50bec1b257beb3ebce181ae477b66eb44
1 #ifndef GNUMERIC_GTK_COMPILATION_H
2 #define GNUMERIC_GTK_COMPILATION_H
4 #if defined(__GNUC__)
5 #define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__ )
6 #if (GCC_VERSION >= 402)
7 #if (GCC_VERSION >= 406)
8 #define GNM_BEGIN_KILL_SWITCH_WARNING _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wswitch\"")
9 #define GNM_END_KILL_SWITCH_WARNING _Pragma("GCC diagnostic pop")
10 #else
11 #define GNM_BEGIN_KILL_SWITCH_WARNING _Pragma("GCC diagnostic ignored \"-Wswitch\"")
12 #define GNM_END_KILL_SWITCH_WARNING _Pragma("GCC diagnostic warning \"-Wswitch\"")
13 #endif
14 #endif
15 #endif
17 #ifndef GNM_BEGIN_KILL_SWITCH_WARNING
18 #define GNM_BEGIN_KILL_SWITCH_WARNING
19 #endif
20 #ifndef GNM_END_KILL_SWITCH_WARNING
21 #define GNM_END_KILL_SWITCH_WARNING
22 #endif
24 #endif