Staging
v0.5.1
https://github.com/python/cpython
Revision d1d42bf4a404f092fe90fe8984481c507a64ef0a authored by Miss Islington (bot) on 29 August 2019, 07:56:04 UTC, committed by GitHub on 29 August 2019, 07:56:04 UTC
(cherry picked from commit 122376df550b71dd3bec0513c7483cc1714212fa)

Co-authored-by: Justin Blanchard <UncombedCoconut@gmail.com>
1 parent 097eae5
Raw File
Tip revision: d1d42bf4a404f092fe90fe8984481c507a64ef0a authored by Miss Islington (bot) on 29 August 2019, 07:56:04 UTC
bpo-37372: Fix error unpickling datetime.time objects from Python 2 with seconds>=24. (GH-14307)
Tip revision: d1d42bf
getcompiler.c

/* Return the compiler identification, if possible. */

#include "Python.h"

#ifndef COMPILER

// Note the __clang__ conditional has to come before the __GNUC__ one because
// clang pretends to be GCC.
#if defined(__clang__)
#define COMPILER "\n[Clang " __clang_version__ "]"
#elif defined(__GNUC__)
#define COMPILER "\n[GCC " __VERSION__ "]"
// Generic fallbacks.
#elif defined(__cplusplus)
#define COMPILER "[C++]"
#else
#define COMPILER "[C]"
#endif

#endif /* !COMPILER */

const char *
Py_GetCompiler(void)
{
    return COMPILER;
}
back to top