Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: fa5ad47de774790e1e92578812825278c41a28ca authored by Georg Brandl on 05 March 2011, 13:56:41 UTC
Close 2.4 branch.
Tip revision: fa5ad47
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