Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 37655:2f3f2e32dfd9 legacy-trunk
spread the extern "C" { } magic pixie dust around. Python itself builds now
using a C++ compiler. Still lots and lots of errors in the modules built by
setup.py, and a bunch of warnings from g++ in the core.
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Thu, 13 Apr 2006 02:06:09 +0000 |
| parents | 65ecb83ea7dd |
| children | d82dced6f1fa |
line wrap: on
line diff
--- a/Python/pythonrun.c Thu Apr 13 02:04:42 2006 +0000 +++ b/Python/pythonrun.c Thu Apr 13 02:06:09 2006 +0000 @@ -37,6 +37,10 @@ _Py_GetRefTotal()) #endif +#ifdef __cplusplus +extern "C" { +#endif + extern char *Py_GetPath(void); extern grammar _PyParser_Grammar; /* From graminit.c */ @@ -1692,3 +1696,8 @@ { return PyParser_SimpleParseStringFlags(str, start, 0); } + +#ifdef __cplusplus +} +#endif +
