1/* Return the compiler identification, if possible. */23#include "Python.h"45#ifndef COMPILER67// Note the __clang__ conditional has to come before the __GNUC__ one because8// clang pretends to be GCC.9#if defined(__clang__)10#define COMPILER "[Clang " __clang_version__ "]"11#elif defined(__GNUC__)12#define COMPILER "[GCC " __VERSION__ "]"13// Generic fallbacks.14#elif defined(__cplusplus)15#define COMPILER "[C++]"16#else17#define COMPILER "[C]"18#endif1920#endif /* !COMPILER */2122const char *23Py_GetCompiler(void)24{25return COMPILER;26}272829