Staging
v0.5.1
Revision 96d237c40a97f2db2f347f657669ff08c96a005e authored by Georg Brandl on 13 August 2011, 09:59:12 UTC, committed by Georg Brandl on 13 August 2011, 09:59:12 UTC
1 parent d88e5af
Raw File
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