# HG changeset patch # User Alpar Juttner # Date 1427904810 -7200 # Node ID 1d80ec7d17eb1d7ac5cfc8eff0dcf6a7a93ede2f # Parent 5de6a70446f6ed13d456d1df8d0bfd4085bcf2af Remove GCC_VERSION define (#536) This fix is due to marciso. diff -r 5de6a70446f6 -r 1d80ec7d17eb lemon/core.h --- a/lemon/core.h Wed Jul 09 14:41:36 2014 +0200 +++ b/lemon/core.h Wed Apr 01 18:13:30 2015 +0200 @@ -37,13 +37,7 @@ #pragma warning( disable : 4250 4355 4503 4800 4996 ) #endif -#ifdef __GNUC__ -#define GCC_VERSION (__GNUC__ * 10000 \ - + __GNUC_MINOR__ * 100 \ - + __GNUC_PATCHLEVEL__) -#endif - -#if GCC_VERSION >= 40800 +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) // Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8 #pragma GCC diagnostic ignored "-Wunused-local-typedefs" #endif