Remove GCC_VERSION define (#536)
authorAlpar Juttner <alpar@cs.elte.hu>
Wed, 01 Apr 2015 18:13:30 +0200
changeset 11361d80ec7d17eb
parent 1135 5de6a70446f6
child 1137 f05270f176d9
Remove GCC_VERSION define (#536)

This fix is due to marciso.
lemon/core.h
     1.1 --- a/lemon/core.h	Wed Jul 09 14:41:36 2014 +0200
     1.2 +++ b/lemon/core.h	Wed Apr 01 18:13:30 2015 +0200
     1.3 @@ -37,13 +37,7 @@
     1.4  #pragma warning( disable : 4250 4355 4503 4800 4996 )
     1.5  #endif
     1.6  
     1.7 -#ifdef __GNUC__
     1.8 -#define GCC_VERSION (__GNUC__ * 10000                   \
     1.9 -                     + __GNUC_MINOR__ * 100             \
    1.10 -                     + __GNUC_PATCHLEVEL__)
    1.11 -#endif
    1.12 -
    1.13 -#if GCC_VERSION >= 40800
    1.14 +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
    1.15  // Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8
    1.16  #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
    1.17  #endif