_cplusplus
The __cplusplus
preprocessor macro is defined if the compilation unit is compiled with a C++ compiler. If defined, its value corresponds to the C++ standard that the compiler uses to compile a compilation unit.
具体来说g++编译.c/.cpp,gcc编译.cpp