Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: ad2c2d380e7ebbd31712ceb59e87e84b8a7c131d authored by Ned Deily on 07 December 2016, 00:02:30 UTC
Version bump for 3.6.0rc1
Tip revision: ad2c2d3
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