view Python/getcompiler.c @ 75824:daed636a3536 3.2

Fixes Issue #14331: Use significantly less stack space when importing modules by allocating path buffers on the heap instead of the stack.
author Gregory P. Smith <greg@krypto.org>
date Sun, 18 Mar 2012 16:06:53 -0700
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;
}