Staging
v0.5.1
Revision c2f86d86e6c8f5fd1ef602128b537a48f3f5c063 authored by Benjamin Peterson on 19 October 2019, 18:38:44 UTC, committed by Benjamin Peterson on 19 October 2019, 18:38:44 UTC
1 parent 74ceb35
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