check-compiler.h 484 Bytes
Newer Older
1 2 3 4 5 6


// Check compiler

#if defined(__clang__)
    #if (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) < 30300
7
        #warning "Vidjil needs a C++11 compiler such as clang >= 3.3 - see http://vidjil.org/doc/vidjil-algo"
8 9 10
    #endif
#elif defined(__GNUC__)
    #if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40800
11
        #warning "Vidjil needs a C++11 compiler such as gcc >= 4.8 - see http://vidjil.org/doc/vidjil-algo"
12 13
    #endif
#endif