Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: a2aa2ef3136e4190d533447e13a79b49522eb0ce authored by Benjamin Peterson on 23 February 2012, 15:52:17 UTC
bump to 2.7.3rc1
Tip revision: a2aa2ef
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