Staging
v0.5.1
Revision 3c6b436a57893dd1fae4e072768f41a199076252 authored by Ned Deily on 23 December 2018, 21:37:14 UTC, committed by Ned Deily on 23 December 2018, 21:37:14 UTC
1 parent 68f5dfd
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