Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 9649cdd5d4b947fd7356f1c2946509b8a520647d authored by Barry Warsaw on 03 April 2008, 04:10:02 UTC
Updating for 2.6a2
Tip revision: 9649cdd
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