view Python/getcompiler.c @ 65008:c620fe87c703

Issue #9979: Use PyUnicode_AsWideCharString() in import.c Don't truncate path if it is too long anymore, and allocate fewer memory (but allocate it on the heap, not on the stack).
author Victor Stinner <victor.stinner@haypocalc.com>
date Wed, 29 Sep 2010 10:28:51 +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;
}