view Python/getcompiler.c @ 71570:5467abaaf5eb

Merge from 3.2 (#10318, #12255, #12043, #12417 and other fixes)
author Éric Araujo <merwok@netwok.org>
date Fri, 29 Jul 2011 03:11:09 +0200
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;
}