Defines or undefines certain GNU macros.
Windows: None
Linux: Preprocessor > gcc Predefined Macro Enablement
Mac OS: Preprocessor > Do Not Predefine gcc Macros
IA-32 architecture, Intel® 64 architecture, IA-64 architecture
| Linux and Mac OS: | -gcc |
| -no-gcc | |
| -gcc-sys | |
| Windows: | None |
None
| -gcc | The compiler defines the GNU macros __GNUC__, __GNUC_MINOR__, and __GNUC_PATCHLEVEL__. |
This option determines whether the GNU macros __GNUC__, __GNUC_MINOR__, and __GNUC_PATCHLEVEL__ are defined and when they are defined.
| Option | Description |
|---|---|
| -gcc | Defines GNU macros |
| -no-gcc | Undefines GNU macros |
| -gcc-sys | Defines GNU macros only during compilation of system headers |
None