Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: f125bf5f94ece89b42196ec08339a750e0eb3de6 authored by Georg Brandl on 04 March 2012, 15:26:19 UTC
Update copyright years and version name.
Tip revision: f125bf5
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