Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 385b3686ff87da838af03b219540d704335f2bc6 authored by Larry Hastings on 24 July 2017, 02:40:13 UTC
Version bump & copyright year fixes for 3.5.4rc1.
Tip revision: 385b368
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