Staging
v0.5.1
https://github.com/python/cpython
Revision df8e75ed5a48860afd87dee7cb7a42286703245f authored by Georg Brandl on 05 March 2011, 19:40:50 UTC, committed by Georg Brandl on 05 March 2011, 19:40:50 UTC
2 parent s ae2af38 + 6e0a8b8
Raw File
Tip revision: df8e75ed5a48860afd87dee7cb7a42286703245f authored by Georg Brandl on 05 March 2011, 19:40:50 UTC
Merge tags from 2.5.
Tip revision: df8e75e
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