Staging
v0.8.1
Revision ae7bc1348237a9120bc896e17c2e3461728ecb9c authored by Barry Warsaw on 22 May 2003, 19:13:35 UTC, committed by Barry Warsaw on 22 May 2003, 19:13:35 UTC
1 parent f828b41
Raw File
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