Staging
v0.5.1
Revision b398d2c2bf710412556cf5ad716e4fc98a7cb7ab authored by Martin Panter on 01 December 2016, 01:32:16 UTC, committed by Martin Panter on 01 December 2016, 01:32:16 UTC
1 parent ed82604
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