Staging
v0.8.1
Revision 3271fba16e862c239a0aa391e49ea1d7b19d5924 authored by Miss Islington (bot) on 07 July 2018, 19:34:43 UTC, committed by GitHub on 07 July 2018, 19:34:43 UTC
(cherry picked from commit 03dd0e794e26afb5fa998d10ae2071e2cb0bc634)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
1 parent dc33d4a
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