Mercurial > cpython-lru_cache-weakref
diff Python/errors.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 | 8e04de2480e4 |
| children | 833f384ebd41 |
line wrap: on
line diff
--- a/Python/errors.c Thu Apr 13 02:04:42 2006 +0000 +++ b/Python/errors.c Thu Apr 13 02:06:09 2006 +0000 @@ -16,6 +16,11 @@ #include <ctype.h> +#ifdef __cplusplus +extern "C" { +#endif + + void PyErr_Restore(PyObject *type, PyObject *value, PyObject *traceback) { @@ -786,3 +791,8 @@ } return NULL; } + +#ifdef __cplusplus +} +#endif +
