Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: d858df20d0d82eeefbdbe9982cfd68207a0cd446 authored by Benjamin Peterson on 11 June 2011, 14:58:58 UTC
bump to 3.1.4
Tip revision: d858df2
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