Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: e95a8f6ff1830bcd59e149b52174a82276fed0f3 authored by Benjamin Peterson on 09 April 2012, 23:04:04 UTC
bump to 2.7.3 final
Tip revision: e95a8f6
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