summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorescoffon <escoffon>1998-07-29 14:16:25 (GMT)
committerescoffon <escoffon>1998-07-29 14:16:25 (GMT)
commita8b52f8940574c339a076e077bd761bd136bd8b8 (patch)
tree2b35c071eab1e69259b1fe498dd517ef45b74e14 /win
parent7bfb47586c47ee2a2ddb61b30c6998b62fa5757c (diff)
downloadtcl-a8b52f8940574c339a076e077bd761bd136bd8b8.zip
tcl-a8b52f8940574c339a076e077bd761bd136bd8b8.tar.gz
tcl-a8b52f8940574c339a076e077bd761bd136bd8b8.tar.bz2
- added setting of EXPORT to DLLEXPORT if we are building Tcl.
Diffstat (limited to 'win')
-rw-r--r--win/tclWinInt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/win/tclWinInt.h b/win/tclWinInt.h
index a9d7a60..6c7fad2 100644
--- a/win/tclWinInt.h
+++ b/win/tclWinInt.h
@@ -21,6 +21,11 @@
#include "tclPort.h"
#endif
+#ifdef BUILD_tcl
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* Some versions of Borland C have a define for the OSVERSIONINFO for
* Win32s and for NT, but not for Windows 95.
@@ -35,5 +40,7 @@ EXTERN void TclWinInit(HINSTANCE hInst);
EXTERN int TclWinSynchSpawn(void *args, int type, void **trans,
Tcl_Pid *pidPtr);
+#undef EXPORT
+#define EXPORT DLLIMPORT
#endif /* _TCLWININT */