view Python/getcompiler.c @ 51832:90412dfdaba3 3.0

Move issues in Misc/NEWS fixed in 3.0.2 from the 3.0.1 to the 3.0.2 section.
author Matthias Klose <doko@ubuntu.com>
date Tue, 24 Feb 2009 11:18:39 +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;
}