view Python/getcompiler.c @ 43538:a44e4cc33f5e 2.5

Backport 58424: Fix Coverity 185-186: If the passed in FILE is NULL, uninitialized memory would be accessed.
author Neal Norwitz <nnorwitz@gmail.com>
date Fri, 12 Oct 2007 03:59:09 +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;
}