Staging
v0.8.1
Revision ac4f751049dbb6092bb2697c67d83bf14a46b72e authored by Larry Hastings on 12 October 2019, 11:10:33 UTC, committed by Larry Hastings on 12 October 2019, 11:10:33 UTC
1 parent 280a0f5
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