Staging
v0.5.1
https://github.com/python/cpython
Revision f34890937bd5776fb21f1f6c686e033beb9b8a5c authored by Gregory P. Smith on 17 January 2014, 20:08:49 UTC, committed by Gregory P. Smith on 17 January 2014, 20:08:49 UTC
1 parent 1093bf2
Raw File
Tip revision: f34890937bd5776fb21f1f6c686e033beb9b8a5c authored by Gregory P. Smith on 17 January 2014, 20:08:49 UTC
avoid a compiler warning about assigning const char * to char *.
Tip revision: f348909
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