Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 37654:dec259e4d891 | 37655:2f3f2e32dfd9 |
|---|---|
| 14 #include "osdefs.h" | 14 #include "osdefs.h" |
| 15 #include "importdl.h" | 15 #include "importdl.h" |
| 16 | 16 |
| 17 #ifdef HAVE_FCNTL_H | 17 #ifdef HAVE_FCNTL_H |
| 18 #include <fcntl.h> | 18 #include <fcntl.h> |
| 19 #endif | |
| 20 #ifdef __cplusplus | |
| 21 extern "C" { | |
| 19 #endif | 22 #endif |
| 20 | 23 |
| 21 extern time_t PyOS_GetLastModificationTime(char *, FILE *); | 24 extern time_t PyOS_GetLastModificationTime(char *, FILE *); |
| 22 /* In getmtime.c */ | 25 /* In getmtime.c */ |
| 23 | 26 |
| 2945 newtab[0].name = name; | 2948 newtab[0].name = name; |
| 2946 newtab[0].initfunc = initfunc; | 2949 newtab[0].initfunc = initfunc; |
| 2947 | 2950 |
| 2948 return PyImport_ExtendInittab(newtab); | 2951 return PyImport_ExtendInittab(newtab); |
| 2949 } | 2952 } |
| 2953 | |
| 2954 #ifdef __cplusplus | |
| 2955 } | |
| 2956 #endif |
