Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 16ec24a1920dd4e94e2890032b5c4160621d526d authored by Barry Warsaw on 04 June 2011, 00:02:47 UTC
Replay svn r88850.
Tip revision: 16ec24a
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