Added unmodified Python-2.7.5 sources Change-Id: I230169787cb61d59d4b31f81bcdf98b57454c70b
diff --git a/Python-2.7.5/Python/getcompiler.c b/Python-2.7.5/Python/getcompiler.c new file mode 100644 index 0000000..0f441de --- /dev/null +++ b/Python-2.7.5/Python/getcompiler.c
@@ -0,0 +1,28 @@ + +/* Return the compiler identification, if possible. */ + +#include "Python.h" + +#ifndef COMPILER + +#ifdef __GNUC__ +#define COMPILER "\n[GCC " __VERSION__ "]" +#endif + +#endif /* !COMPILER */ + +#ifndef COMPILER + +#ifdef __cplusplus +#define COMPILER "[C++]" +#else +#define COMPILER "[C]" +#endif + +#endif /* !COMPILER */ + +const char * +Py_GetCompiler(void) +{ + return COMPILER; +}