view Python/getcompiler.c @ 24284:d8909792005a legacy-trunk

SF patch 552161 - Py_AddPendingCall doesn't unlock on fail (Daniel Dunbar) Can't test this, but looks correct to me.
author Guido van Rossum <guido@python.org>
date Wed, 17 Jul 2002 16:57:13 +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;
}