Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: bb5cd08688a92bcb4cf255d9009dcbfaba0deb8b authored by Barry Warsaw on 02 April 2008, 23:33:27 UTC
release.py induced and manual editing steps for 3.0a4.
Tip revision: bb5cd08
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