diff options
author | escoffon <escoffon> | 1998-07-29 14:02:01 (GMT) |
---|---|---|
committer | escoffon <escoffon> | 1998-07-29 14:02:01 (GMT) |
commit | 8b7e4180c368fa58eccde0d01d41a8583e226c42 (patch) | |
tree | 58da7bb2166524049f7dc92efb086cb924281026 /win/tclWinPort.h | |
parent | 54f9510d6a25a725ce464f27a4eb7d7dbf8866be (diff) | |
download | tcl-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.h | 9 |
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 */ |