Staging
v0.8.1
Revision 5279fb99cb309b422c2ba11eadc01368b6d997f1 authored by Raymond Hettinger on 25 June 2011, 09:30:53 UTC, committed by Raymond Hettinger on 25 June 2011, 09:30:53 UTC
1 parent dbfb9b8
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