Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 586547387b468ffb391cb76842f65e68164e5135 authored by Benjamin Peterson on 16 August 2009, 21:59:05 UTC
bump to 3.1.1
Tip revision: 5865473
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