summaryrefslogtreecommitdiffstats
path: root/win/tkWinInt.h
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-03-02 23:52:36 (GMT)
committerhobbs <hobbs>2000-03-02 23:52:36 (GMT)
commit2e992346d67c6e23c86d6d3808a0895116140fea (patch)
tree7de3d6716b43c5986c312c8a093a24dfdf3eebdf /win/tkWinInt.h
parent5cb508c4cca65602bd2fdb7013f5accbff1ddb18 (diff)
downloadtk-2e992346d67c6e23c86d6d3808a0895116140fea.zip
tk-2e992346d67c6e23c86d6d3808a0895116140fea.tar.gz
tk-2e992346d67c6e23c86d6d3808a0895116140fea.tar.bz2
* win/tkWinInt.h: change extern to EXTERN for TkWinChildProc
declaration with extra #defs. [Bug: 4240] * tests/color.test: * xlib/xcolors.c (XParseColor FindColor): * win/tkWinColor.c (XAllocColor): Fixed bit fiddling for colors to return "correct" values for color mapping. [Bug: 4282]
Diffstat (limited to 'win/tkWinInt.h')
-rw-r--r--win/tkWinInt.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/win/tkWinInt.h b/win/tkWinInt.h
index 7aaabaa..6b5e85f 100644
--- a/win/tkWinInt.h
+++ b/win/tkWinInt.h
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinInt.h,v 1.7 1999/11/19 22:00:19 hobbs Exp $
+ * RCS: @(#) $Id: tkWinInt.h,v 1.8 2000/03/02 23:52:37 hobbs Exp $
*/
#ifndef _TKWININT
@@ -151,8 +151,20 @@ extern int tkpWinRopModes[];
#include "tkIntPlatDecls.h"
-extern LRESULT CALLBACK TkWinChildProc _ANSI_ARGS_((HWND hwnd, UINT message,
+/*
+ * We need to specially add the TkWinChildProc because of the special
+ * prototype it has (doesn't fit into stubs schema)
+ */
+#ifdef BUILD_tk
+#undef TCL_STORAGE_CLASS
+#define TCL_STORAGE_CLASS DLLEXPORT
+#endif
+
+EXTERN LRESULT CALLBACK TkWinChildProc _ANSI_ARGS_((HWND hwnd, UINT message,
WPARAM wParam, LPARAM lParam));
+#undef TCL_STORAGE_CLASS
+#define TCL_STORAGE_CLASS DLLIMPORT
+
#endif /* _TKWININT */