Staging
v0.5.1
Revision 079381d236f6e62db3a48cbffb14978124d94d14 authored by Guido van Rossum on 29 March 2011, 19:51:16 UTC, committed by Guido van Rossum on 29 March 2011, 19:51:16 UTC
2 parent s af1fee0 + 92ecb87
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