view Python/getcompiler.c @ 46416:39ea2fc4503d legacy-trunk

Fix a bug in PySys_HasWarnOption() where it was not properly checking the length of the list storing the warning options.
author Brett Cannon <bcannon@gmail.com>
date Sun, 13 Apr 2008 00:18:44 +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;
}