diff options
Diffstat (limited to 'Python/getcompiler.c')
-rw-r--r-- | Python/getcompiler.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Python/getcompiler.c b/Python/getcompiler.c index 59c0dbf..9d9c33a 100644 --- a/Python/getcompiler.c +++ b/Python/getcompiler.c @@ -5,14 +5,15 @@ #ifndef COMPILER -// Note the __clang__ conditional has to come before the __GNUC__ one because -// clang pretends to be GCC. -#if defined(__clang__) -#define COMPILER "\n[Clang " __clang_version__ "]" -#elif defined(__GNUC__) +#ifdef __GNUC__ #define COMPILER "\n[GCC " __VERSION__ "]" -// Generic fallbacks. -#elif defined(__cplusplus) +#endif + +#endif /* !COMPILER */ + +#ifndef COMPILER + +#ifdef __cplusplus #define COMPILER "[C++]" #else #define COMPILER "[C]" |