Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: e948ea01eb6635d544a2100ceeb18933b6e37753 authored by Barry Warsaw on 01 October 2009, 23:39:49 UTC
Bump to 2.6.3
Tip revision: e948ea0
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