Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: ae1c290a0576c4203fbaae8b32b6e16b6f3df95a authored by Martin v. Löwis on 02 March 2008, 19:33:40 UTC
Prepare for 2.4.5c1
Tip revision: ae1c290
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