branch | 1.1 |
changeset 1248 | 14394c9603c2 |
parent 1237 | deaf433636ca |
parent 1246 | 6039b32a2351 |
1.1 --- a/lemon/core.h Tue Jul 30 15:52:38 2013 +0200 1.2 +++ b/lemon/core.h Tue Aug 06 12:19:11 2013 +0200 1.3 @@ -38,6 +38,12 @@ 1.4 #endif 1.5 1.6 #ifdef __GNUC__ 1.7 +#define GCC_VERSION (__GNUC__ * 10000 \ 1.8 + + __GNUC_MINOR__ * 100 \ 1.9 + + __GNUC_PATCHLEVEL__) 1.10 +#endif 1.11 + 1.12 +#if GCC_VERSION >= 40800 1.13 // Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8 1.14 #pragma GCC diagnostic ignored "-Wunused-local-typedefs" 1.15 #endif