Staging
v0.5.1
Revision af810b35b494ef1d255d4bf340b92a9dad446995 authored by Jakub Stasiak on 05 October 2017, 07:10:09 UTC, committed by Benjamin Peterson on 05 October 2017, 07:10:09 UTC
1 parent a8ed117
Raw File
getcompiler.c

/* 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;
}
back to top