Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: d12551fe71ffa19cc57986b06c2097b4b87949a4 authored by Larry Hastings on 02 January 2017, 06:12:36 UTC
Version bump for 3.4.6rc1.
Tip revision: d12551f
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