Staging
v0.8.1
Revision 63b91e5403d58d8a56e60c760133f32659ac93c3 authored by Tommy Beadle on 02 June 2016, 19:41:20 UTC, committed by Tommy Beadle on 02 June 2016, 19:41:20 UTC
1 parent 39b1025
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