diff options
Diffstat (limited to 'Python/getcompiler.c')
-rw-r--r-- | Python/getcompiler.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Python/getcompiler.c b/Python/getcompiler.c index 0816717958..56ff4867b9 100644 --- a/Python/getcompiler.c +++ b/Python/getcompiler.c @@ -22,26 +22,30 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ******************************************************************/ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +/* Return the compiler identification, if possible. */ + +#include "Python.h" #ifndef COMPILER + #ifdef __GNUC__ #define COMPILER " [GCC " __VERSION__ "]" #endif + #endif /* !COMPILER */ #ifndef COMPILER + #ifdef __cplusplus #define COMPILER "[C++]" #else #define COMPILER "[C]" #endif + #endif /* !COMPILER */ char * -getcompiler() +Py_GetCompiler() { return COMPILER; } |