Staging
v0.8.1
https://github.com/python/cpython
Revision 6cc7940e10372aa696ac62d9ab00bf0717a94ae6 authored by Barry Warsaw on 08 May 2008, 13:16:19 UTC, committed by Barry Warsaw on 08 May 2008, 13:16:19 UTC
1 parent c27b8b8
Raw File
Tip revision: 6cc7940e10372aa696ac62d9ab00bf0717a94ae6 authored by Barry Warsaw on 08 May 2008, 13:16:19 UTC
Bump to 2.6a3
Tip revision: 6cc7940
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