Mercurial > cpython-lru_cache-weakref
diff Include/allobjects.h @ 1794:9b530bb54642 legacy-trunk
Changes for dynamic linking under NT
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 18 Aug 1994 16:18:13 +0000 |
| parents | 1940892d2fe3 |
| children | b711c9010232 |
line wrap: on
line diff
--- a/Include/allobjects.h Thu Aug 18 16:03:36 1994 +0000 +++ b/Include/allobjects.h Thu Aug 18 16:18:13 1994 +0000 @@ -30,6 +30,19 @@ /* "allobjects.c" -- Source for precompiled header "allobjects.h" */ +/* Some systems (well, NT anyway!) require special declarations for + data items imported from dynamic modules. Note that this defn is + only turned on for the modules built as DL modules, not for python + itself. +*/ +#define DL_IMPORT /* Save lots of #else/#if's */ +#ifdef USE_DL_IMPORT +#ifdef NT +#undef DL_IMPORT +#define DL_IMPORT __declspec(dllimport) +#endif /* NT */ +#endif /* USE_DL_IMPORT */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif
