lemon/core.h
changeset 1198 2236d00ca778
parent 1135 c199e9976d93
     1.1 --- a/lemon/core.h	Wed Oct 17 22:56:43 2018 +0200
     1.2 +++ b/lemon/core.h	Thu Nov 01 19:49:51 2018 +0100
     1.3 @@ -33,19 +33,21 @@
     1.4  // C4503: 'function' : decorated name length exceeded, name was truncated
     1.5  // C4800: 'type' : forcing value to bool 'true' or 'false' (performance warning)
     1.6  // C4996: 'function': was declared deprecated
     1.7 +
     1.8 +#include <lemon/config.h>
     1.9 +
    1.10  #ifdef _MSC_VER
    1.11  #pragma warning( disable : 4250 4267 4355 4503 4800 4996 )
    1.12  #endif
    1.13  
    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 +#if LEMON_NO_UNUSED_LOCAL_TYPEDEF_WARNINGS
    1.17 +// Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc >=4.8 and clang
    1.18  #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
    1.19  #endif
    1.20  
    1.21  #include <vector>
    1.22  #include <algorithm>
    1.23  
    1.24 -#include <lemon/config.h>
    1.25  #include <lemon/bits/enable_if.h>
    1.26  #include <lemon/bits/traits.h>
    1.27  #include <lemon/assert.h>