Staging
v0.5.1
https://github.com/python/cpython
Revision b7a841ca40609dfc935555716de0471cff7ec03f authored by Josiah Carlson on 07 September 2008, 04:37:10 UTC, committed by Josiah Carlson on 07 September 2008, 04:37:10 UTC
1 parent 1680b8c
Raw File
Tip revision: b7a841ca40609dfc935555716de0471cff7ec03f authored by Josiah Carlson on 07 September 2008, 04:37:10 UTC
undoing change that broke trunk. Need to find a better solution to this.
Tip revision: b7a841c
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