summaryrefslogtreecommitdiffstats
path: root/Include/allobjects.h
diff options
context:
space:
mode:
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