GCC

Online References

Predefined Macros

 

GCC Predefined Macros

 

 

MACRO

GCC OPTION

VERSION

DESCRIPTION

GNUC

 

all

Defined to the major version of the compiler.

GNUC_MINOR

 

all

Defined to the minor version of the compiler.

GNUC_PATCHLEVEL

 

all

Defined to the micro (patch) version of the compiler.

GNUG

 

all

Defined to the same value as GUNC in C++ mode.

CYGWIN

Cygwin

all

Defined when compiling for the Cygwin environment without -mno-cygwin option.

MINGW32

MinGW

all

Defined when compiling for the MinGW environment or when compiling for the Cygwin environment with -mno-cygwin option specified.

_WIN32

MinGW

all

Defined when compiling for the MinGW environment or when compiling for the Cygwin environment with -mno-cygwin option specified.

Discussion Forums

GCC Mailing Lists

Bug Reports

Additional Resources

GCC Summit Proceedings

  • No labels