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

gcc (last edited 2009-09-20 23:02:58 by localhost)