lemon/core.h
branch1.2
changeset 981 2c2e8df67ddc
parent 976 736436e516d3
parent 979 6039b32a2351
child 985 b9887ae63df0
     1.1 --- a/lemon/core.h	Tue Jul 30 15:53:02 2013 +0200
     1.2 +++ b/lemon/core.h	Tue Aug 06 12:21:06 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