summaryrefslogtreecommitdiffstats
path: root/Include/allobjects.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-18 16:18:13 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-18 16:18:13 (GMT)
commite89bc75048d0142859379b2b92e77d984fdbef6e (patch)
tree59cc70e5004568e03a371b088109b2330d03698c /Include/allobjects.h
parent14aa5da824a398fad7403510f7b49e724f862e23 (diff)
downloadcpython-e89bc75048d0142859379b2b92e77d984fdbef6e.zip
cpython-e89bc75048d0142859379b2b92e77d984fdbef6e.tar.gz
cpython-e89bc75048d0142859379b2b92e77d984fdbef6e.tar.bz2
Changes for dynamic linking under NT
Diffstat (limited to 'Include/allobjects.h')
-rw-r--r--Include/allobjects.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Include/allobjects.h b/Include/allobjects.h
index 2b361c1..3d555d0 100644
--- a/Include/allobjects.h
+++ b/Include/allobjects.h
@@ -30,6 +30,19 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* "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