Mercurial > cpython-lru_cache-weakref
diff Python/import.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 | 4b761a63399c |
| children | b5e7d5b3c442 |
line wrap: on
line diff
--- a/Python/import.c Thu Apr 13 02:04:42 2006 +0000 +++ b/Python/import.c Thu Apr 13 02:06:09 2006 +0000 @@ -17,6 +17,9 @@ #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif +#ifdef __cplusplus +extern "C" { +#endif extern time_t PyOS_GetLastModificationTime(char *, FILE *); /* In getmtime.c */ @@ -2947,3 +2950,7 @@ return PyImport_ExtendInittab(newtab); } + +#ifdef __cplusplus +} +#endif
