Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: 8022feed57dfb3ef54771fcf752f8ae85a28635f authored by Anthony Baxter on 18 October 2006, 07:02:36 UTC
regenerating tag.
Tip revision: 8022fee
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