lemon/core.h
changeset 979 6039b32a2351
parent 975 756022ac1674
child 981 2c2e8df67ddc
child 983 8b2d4e5d96e4
     1.1 --- a/lemon/core.h	Tue Jul 30 15:03:53 2013 +0200
     1.2 +++ b/lemon/core.h	Tue Aug 06 09:10:18 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