view Python/getcompiler.c @ 37619:f19addd69ad9 legacy-trunk

avoid C++ name mangling for the _Py.*SizeT functions
author Anthony Baxter <anthonybaxter@gmail.com>
date Wed, 12 Apr 2006 04:38:54 +0000
parents 4306107b1395
children
line wrap: on
line source


/* 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;
}