Skip to content

Pre defined C C Compiler Macros

s-trinh edited this page Jun 5, 2020 · 1 revision

Pre-defined C/C++ Compiler Macros:

C and C++ compilers automatically define certain macros that can be used to check for compiler or operating system features. This is useful when writing portable software.

These pages lists various pre-defined compiler macros that can be used to identify standards, compilers, operating systems, hardware architectures, and even basic run-time libraries at compile-time.

In particular, the following pages can be useful (refer to the link above for other macros):