diff -r 756022ac1674 -r 6039b32a2351 lemon/core.h --- a/lemon/core.h Tue Jul 30 15:03:53 2013 +0200 +++ b/lemon/core.h Tue Aug 06 09:10:18 2013 +0200 @@ -38,6 +38,12 @@ #endif #ifdef __GNUC__ +#define GCC_VERSION (__GNUC__ * 10000 \ + + __GNUC_MINOR__ * 100 \ + + __GNUC_PATCHLEVEL__) +#endif + +#if GCC_VERSION >= 40800 // Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8 #pragma GCC diagnostic ignored "-Wunused-local-typedefs" #endif