Staging
v0.5.1
Revision a40ea98fc10b86b47dde49884c4d2c8fe6e79bce authored by Benjamin Peterson on 10 May 2015, 17:14:16 UTC, committed by Benjamin Peterson on 10 May 2015, 17:14:16 UTC
1 parent 91fd159
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