Staging
v0.8.1
Revision 369647230bd9eac1198f272ba4dd6f88ce843c13 authored by Raymond Hettinger on 29 October 2003, 00:47:11 UTC, committed by Raymond Hettinger on 29 October 2003, 00:47:11 UTC
New fix for this bug recognizes differing definitions on various systems.
1 parent 56072b8
Raw File
getcompiler.c

/* 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;
}
back to top