summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-12-09 20:44:07 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-12-09 20:44:07 (GMT)
commitc4981617ac9afe19315d30fa22bbf9cd72f3f49e (patch)
tree13f8a3f79b611c6818a100d36f54ccbbdfdb0965 /win/tkWinWm.c
parent5327a1a02eb7eb43b35c01a1b4f190b0aad1d8ed (diff)
downloadtk-c4981617ac9afe19315d30fa22bbf9cd72f3f49e.zip
tk-c4981617ac9afe19315d30fa22bbf9cd72f3f49e.tar.gz
tk-c4981617ac9afe19315d30fa22bbf9cd72f3f49e.tar.bz2
Fix suite of small problems that prevented a build from working for me.
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r--win/tkWinWm.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index adf6a62..a1293dd 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinWm.c,v 1.121 2007/12/05 19:08:00 hobbs Exp $
+ * RCS: @(#) $Id: tkWinWm.c,v 1.122 2007/12/09 20:44:08 dkf Exp $
*/
#include "tkWinInt.h"
@@ -563,6 +563,30 @@ static void WmUpdateGeom(WmInfo *wmPtr, TkWindow *winPtr);
*/
#define WIDTHBYTES(bits) ((((bits) + 31)>>5)<<2)
+
+/*
+ * Hacks to make this file build with older versions of the SDK.
+ */
+
+#ifndef GetClassLongPtr
+# define GetClassLongPtrA GetClassLongA
+# define GetClassLongPtrW GetClassLongW
+# define SetClassLongPtrA SetClassLongA
+# define SetClassLongPtrW SetClassLongW
+# ifdef UNICODE
+# define GetClassLongPtr GetClassLongPtrW
+# define SetClassLongPtr SetClassLongPtrW
+# else
+# define GetClassLongPtr GetClassLongPtrA
+# define SetClassLongPtr SetClassLongPtrA
+# endif /* !UNICODE */
+#endif /* !GetClassLongPtr */
+#ifndef GCLP_HICON
+# define GCLP_HICON GCL_HICON
+#endif /* !GCLP_HICON */
+#ifndef GCLP_HICONSM
+# define GCLP_HICONSM (-34)
+#endif /* !GCLP_HICONSM */
/*
*----------------------------------------------------------------------