Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: d5c59763adc85b1ed931465bb29fc451f19516b7 authored by Larry Hastings on 09 March 2014, 11:13:05 UTC
Version bump for 3.4.0rc3.
Tip revision: d5c5976
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