From 8b7e4180c368fa58eccde0d01d41a8583e226c42 Mon Sep 17 00:00:00 2001 From: escoffon Date: Wed, 29 Jul 1998 14:02:01 +0000 Subject: - added setting of EXPORT to DLLEXPORT if we are building Tcl --- win/tclWinPort.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 #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 */ -- cgit v0.12