Mercurial > cpython-lru_cache-weakref
view Python/getcompiler.c @ 36512:3350f85c889f 2.4
Cast assignments to ``unsigned char *`` from PyString_AS_STRING() calls to
silence compiler warnings on gcc 4.0.1 .
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Thu, 16 Feb 2006 07:01:45 +0000 |
| parents | 4306107b1395 |
| children |
line wrap: on
line source
/* 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; }
