view Python/getcompiler.c @ 83716:abc780332b60 2.7

backout 214d8909513d for regressions (#1159051)
author Benjamin Peterson <benjamin@python.org>
date Sat, 11 May 2013 13:17:13 -0500
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;
}