More string.h includes...

Jeff Garzik jgarzik at mandrakesoft.com
Thu Mar 22 07:14:35 CST 2001


This patch is similar to my earlier string.h patch -- it fixes warnings
which occur when more "strict" headers are in place, as with glibc
2.2.2.

I send this as a separate patch because it modifies dlls/* code.  None
of these files ever include a standard system header, which lead me to
believe that my patch may be wrong.

Maybe these files need to be fixed, instead, to use winelib functions?

-- 
Jeff Garzik       | May you have warm words on a cold evening,
Building 1024     | a full mooon on a dark night,
MandrakeSoft      | and a smooth road all the way to your door.
-------------- next part --------------
Index: dlls/comctl32/comboex.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/comboex.c,v
retrieving revision 1.30
diff -u -r1.30 comboex.c
--- dlls/comctl32/comboex.c	2001/03/16 16:41:56	1.30
+++ dlls/comctl32/comboex.c	2001/03/22 13:03:44
@@ -63,6 +63,7 @@
  *
  */
 
+#include <string.h>
 #include "winbase.h"
 #include "commctrl.h"
 #include "debugtools.h"
Index: dlls/shlwapi/reg.c
===================================================================
RCS file: /home/wine/wine/dlls/shlwapi/reg.c,v
retrieving revision 1.6
diff -u -r1.6 reg.c
--- dlls/shlwapi/reg.c	2001/02/13 20:17:59	1.6
+++ dlls/shlwapi/reg.c	2001/03/22 13:03:44
@@ -2,6 +2,7 @@
  * SHLWAPI registry functions
  */
 
+#include <string.h>
 #include "windef.h"
 #include "winbase.h"
 #include "wingdi.h"
Index: dlls/x11drv/x11ddraw.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/x11ddraw.c,v
retrieving revision 1.2
diff -u -r1.2 x11ddraw.c
--- dlls/x11drv/x11ddraw.c	2001/03/20 01:24:08	1.2
+++ dlls/x11drv/x11ddraw.c	2001/03/22 13:03:44
@@ -4,6 +4,7 @@
  * Copyright 2001 TransGaming Technologies, Inc.
  */
 
+#include <string.h>
 #include "ts_xlib.h"
 #include "x11drv.h"
 #include "x11ddraw.h"
Index: dlls/x11drv/xvidmode.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/xvidmode.c,v
retrieving revision 1.2
diff -u -r1.2 xvidmode.c
--- dlls/x11drv/xvidmode.c	2001/03/20 01:24:08	1.2
+++ dlls/x11drv/xvidmode.c	2001/03/22 13:03:45
@@ -5,6 +5,7 @@
  */
 
 #include "config.h"
+#include <string.h>
 
 /* FIXME: ChangeDisplaySettings ought to be able to use this */
 


More information about the wine-patches mailing list