summaryrefslogtreecommitdiffstats
path: root/acconfig.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-10 21:09:12 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-10 21:09:12 (GMT)
commitaef734b182850a11ac15c128768826710d7e993e (patch)
treed83b490cfceb8050fc7573146fd27b6e96c7f8d4 /acconfig.h
parent5a53019b0d4780b270c0c8027e0e66b7183fb661 (diff)
downloadcpython-aef734b182850a11ac15c128768826710d7e993e.zip
cpython-aef734b182850a11ac15c128768826710d7e993e.tar.gz
cpython-aef734b182850a11ac15c128768826710d7e993e.tar.bz2
Part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared
Extension Patch. Note: this could use some testing on NeXT, DG/UX, or BeOS, because of the changes in the Makefile regarding $(LDLIBRARY).
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index b188747..23f06ea 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -185,3 +185,15 @@
/* Leave that blank line there-- autoheader needs it! */
+
+@BOTTOM@
+
+#ifdef __CYGWIN__
+#ifdef USE_DL_IMPORT
+#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
+#define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
+#else
+#define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
+#define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
+#endif
+#endif