view Python/getcompiler.c @ 27027:c429fe5de417 legacy-trunk

Another copyright update. (JvR: can you backport this to the 2.3a1 release branch?)
author Guido van Rossum <guido@python.org>
date Thu, 02 Jan 2003 16:27:15 +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;
}