diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-13 02:06:09 +0000 |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-13 02:06:09 +0000 |
commit | ac6bd46d5c30f4e643120aeef1ccd531801a2181 (patch) | |
tree | f753bb13f17b1490ca3c26580c16f1d32ea748dc /Python/import.c | |
parent | 28c5f1fa169ddaec9ad4914e2c263e383390ae43 (diff) | |
download | cpython-git-ac6bd46d5c30f4e643120aeef1ccd531801a2181.tar.gz |
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.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index c3bd275104..81027d8887 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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 @@ PyImport_AppendInittab(char *name, void (*initfunc)(void)) return PyImport_ExtendInittab(newtab); } + +#ifdef __cplusplus +} +#endif |