COIN-OR::LEMON - Graph Library

Ticket #536: gcc-version.patch

File gcc-version.patch, 593 bytes (added by Marcin Sobieszczanski, 10 years ago)
  • lemon/core.h

    old new  
    3737#pragma warning( disable : 4250 4355 4503 4800 4996 )
    3838#endif
    3939
    40 #ifdef __GNUC__
    41 #define GCC_VERSION (__GNUC__ * 10000                   \
    42                      + __GNUC_MINOR__ * 100             \
    43                      + __GNUC_PATCHLEVEL__)
    44 #endif
    45 
    46 #if GCC_VERSION >= 40800
     40#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
    4741// Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8
    4842#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
    4943#endif