summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authorescoffon <escoffon>1998-07-29 14:02:01 (GMT)
committerescoffon <escoffon>1998-07-29 14:02:01 (GMT)
commit8b7e4180c368fa58eccde0d01d41a8583e226c42 (patch)
tree58da7bb2166524049f7dc92efb086cb924281026 /win/tclWinPort.h
parent54f9510d6a25a725ce464f27a4eb7d7dbf8866be (diff)
downloadtcl-8b7e4180c368fa58eccde0d01d41a8583e226c42.zip
tcl-8b7e4180c368fa58eccde0d01d41a8583e226c42.tar.gz
tcl-8b7e4180c368fa58eccde0d01d41a8583e226c42.tar.bz2
- added setting of EXPORT to DLLEXPORT if we are building Tcl
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r--win/tclWinPort.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index bd22180..3beb94e 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -36,6 +36,11 @@
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
+#ifdef BUILD_tcl
+# undef EXPORT
+# define EXPORT DLLEXPORT
+#endif
+
/*
* Define EINPROGRESS in terms of WSAEINPROGRESS.
*/
@@ -394,4 +399,8 @@ EXTERN u_short PASCAL FAR
TclWinNToHS _ANSI_ARGS_((u_short ns));
EXTERN int PASCAL FAR TclWinSetSockOpt _ANSI_ARGS_((SOCKET s, int level,
int optname, const char FAR * optval, int optlen));
+
+#undef EXPORT
+#define EXPORT DLLIMPORT
+
#endif /* _TCLWINPORT */