summaryrefslogtreecommitdiffstats
path: root/win/tkWinButton.c
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2007-12-14 15:56:08 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2007-12-14 15:56:08 (GMT)
commit6ebd9fceb2d78882e1661794ce4121bb29a3cd4b (patch)
tree4bb5b056ddecb200ee7354aec22717f50ba8d156 /win/tkWinButton.c
parente5fd5023e35a9126eb321374b95e88976d00c42a (diff)
downloadtk-6ebd9fceb2d78882e1661794ce4121bb29a3cd4b.zip
tk-6ebd9fceb2d78882e1661794ce4121bb29a3cd4b.tar.gz
tk-6ebd9fceb2d78882e1661794ce4121bb29a3cd4b.tar.bz2
Add in missing function definitions to support plain MSVC6 and use
INT_PTR rather than LONG_PTR which isn'tr defined in the msvc6 headers.
Diffstat (limited to 'win/tkWinButton.c')
-rw-r--r--win/tkWinButton.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c
index f9721ea..5a348b1 100644
--- a/win/tkWinButton.c
+++ b/win/tkWinButton.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinButton.c,v 1.33 2007/12/13 15:28:52 dgp Exp $
+ * RCS: @(#) $Id: tkWinButton.c,v 1.34 2007/12/14 15:56:09 patthoyts Exp $
*/
#define OEMRESOURCE
@@ -275,7 +275,7 @@ CreateProc(
SetWindowPos(butPtr->hwnd, HWND_TOP, 0, 0, 0, 0,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
butPtr->oldProc = (WNDPROC)SetWindowLongPtr(butPtr->hwnd, GWLP_WNDPROC,
- (LONG_PTR) ButtonProc);
+ (INT_PTR) ButtonProc);
window = Tk_AttachHWND(tkwin, butPtr->hwnd);
return window;
@@ -305,7 +305,7 @@ TkpDestroyButton(
HWND hwnd = winButPtr->hwnd;
if (hwnd) {
- SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) winButPtr->oldProc);
+ SetWindowLongPtr(hwnd, GWLP_WNDPROC, (INT_PTR) winButPtr->oldProc);
}
}