Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: a6d12ef0480e19d9b61bc461406a0d22aaa1ff87 authored by Georg Brandl on 13 February 2011, 10:00:57 UTC
Bump for 3.2rc3.
Tip revision: a6d12ef
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