diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:49 +0300 |
commit | 718c552901d703c502ccbefdfc3c9028d608b947 (patch) | |
tree | 46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/tools/python3/src/Python/getcompiler.c | |
parent | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff) | |
download | ydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python3/src/Python/getcompiler.c')
-rw-r--r-- | contrib/tools/python3/src/Python/getcompiler.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/contrib/tools/python3/src/Python/getcompiler.c b/contrib/tools/python3/src/Python/getcompiler.c index 59c0dbf92a..29f81bfe2f 100644 --- a/contrib/tools/python3/src/Python/getcompiler.c +++ b/contrib/tools/python3/src/Python/getcompiler.c @@ -1,27 +1,27 @@ - -/* Return the compiler identification, if possible. */ - -#include "Python.h" - -#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__) -#define COMPILER "\n[GCC " __VERSION__ "]" -// Generic fallbacks. -#elif defined(__cplusplus) -#define COMPILER "[C++]" -#else -#define COMPILER "[C]" -#endif - -#endif /* !COMPILER */ - -const char * -Py_GetCompiler(void) -{ - return COMPILER; -} + +/* Return the compiler identification, if possible. */ + +#include "Python.h" + +#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__) +#define COMPILER "\n[GCC " __VERSION__ "]" +// Generic fallbacks. +#elif defined(__cplusplus) +#define COMPILER "[C++]" +#else +#define COMPILER "[C]" +#endif + +#endif /* !COMPILER */ + +const char * +Py_GetCompiler(void) +{ + return COMPILER; +} |