Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: f5f9d99974febbff6d4d55ef36bbfa0c71ed0738 authored by Barry Warsaw on 12 September 2008, 23:35:48 UTC
Fix the release level
Tip revision: f5f9d99
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