Skip to content
  • Deucе's avatar
    0f04d3ac
    Define a macro to indicate if the compiler is actually GCC. · 0f04d3ac
    Deucе authored
    Pretty much all new compilers these days will define all the GCC
    macros so it's impossible to detect GCC from predefined macros
    without adding a list of all the compilers that pretend to be GCC
    if defined(__GNUC__) && !defined(__clang__) && !defined(____INTEL_COMPILER)
    0f04d3ac
    Define a macro to indicate if the compiler is actually GCC.
    Deucе authored
    Pretty much all new compilers these days will define all the GCC
    macros so it's impossible to detect GCC from predefined macros
    without adding a list of all the compilers that pretend to be GCC
    if defined(__GNUC__) && !defined(__clang__) && !defined(____INTEL_COMPILER)
Loading