Staging
v0.5.1
Revision b5d174037fab4889c1404ebab19b85cbe9aa452e authored by Barry Warsaw on 19 June 2008, 01:48:07 UTC, committed by Barry Warsaw on 19 June 2008, 01:48:07 UTC
1 parent da9c9be
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