Disable GWL_ Macros

Robert Shearman rob at codeweavers.com
Thu Sep 23 07:45:24 CDT 2004


Hi,

Now that the various clean-ups are complete, we can disable the 
appropriate GWL_ macros so that people don't introduce any more.

Rob

Changelog:
Don't define GWL_USERDATA, GWL_ID, GWL_HWNDPARENT, GWL_HINSTANCE and 
GWL_WNDPROC when compiling the Wine source.
-------------- next part --------------
Index: wine/include/winuser.h
===================================================================
RCS file: /home/wine/wine/include/winuser.h,v
retrieving revision 1.185
diff -u -p -r1.185 winuser.h
--- wine/include/winuser.h	20 Sep 2004 19:13:16 -0000	1.185
+++ wine/include/winuser.h	23 Sep 2004 12:34:45 -0000
@@ -1344,13 +1344,15 @@ typedef struct {
 #define WC_DIALOG  WINELIB_NAME_AW(WC_DIALOG)
 
   /* Offsets for GetWindowLong() and GetWindowWord() */
-#define GWL_USERDATA        (-21)
 #define GWL_EXSTYLE         (-20)
 #define GWL_STYLE           (-16)
-#define GWL_ID              (-12)
-#define GWL_HWNDPARENT      (-8)
-#define GWL_HINSTANCE       (-6)
-#define GWL_WNDPROC         (-4)
+#if !defined __WINESRC__
+# define GWL_USERDATA        (-21)
+# define GWL_ID              (-12)
+# define GWL_HWNDPARENT      (-8)
+# define GWL_HINSTANCE       (-6)
+# define GWL_WNDPROC         (-4)
+#endif /* __WINESRC__ */
 #define DWL_MSGRESULT	    0
 #define DWL_DLGPROC	    4
 #define DWL_USER	    8


More information about the wine-patches mailing list