Staging
v0.5.1
Revision a3ce2e5a05ac84ca4316524752cc9371cfc4bf4e authored by Terry Jan Reedy on 21 November 2015, 18:18:50 UTC, committed by Terry Jan Reedy on 21 November 2015, 18:18:50 UTC
1 parent 1a31cba
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