Commit ee517e86 authored by David Luyer's avatar David Luyer Committed by Alexandre Julliard

- fixed missing stdlib.h and string.h includes everywhere

- removed a couple of unneeded stdlib.h and stdio.h includes
parent 8feb3bc1
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
It does not currently support changing the title bar. It does not currently support changing the title bar.
*/ */
#include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <string.h> #include <string.h>
#include <stdlib.h>
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "winuser.h" #include "winuser.h"
#include "winerror.h" #include "winerror.h"
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include "x11drv.h" #include "x11drv.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h> #include <signal.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include "selectors.h" #include "selectors.h"
#include "debugger.h" #include "debugger.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
This files contains all the D3D devices that Wine supports. For the moment This files contains all the D3D devices that Wine supports. For the moment
only the 'OpenGL' target is supported. */ only the 'OpenGL' target is supported. */
#include <string.h>
#include "config.h" #include "config.h"
#include "wintypes.h" #include "wintypes.h"
#include "winerror.h" #include "winerror.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
This files contains the implementation of Direct3DExecuteBuffer. */ This files contains the implementation of Direct3DExecuteBuffer. */
#include <string.h>
#include "config.h" #include "config.h"
#include "wintypes.h" #include "wintypes.h"
#include "winerror.h" #include "winerror.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
This files contains the implementation of interface Direct3DTexture2. */ This files contains the implementation of interface Direct3DTexture2. */
#include <string.h>
#include "config.h" #include "config.h"
#include "wintypes.h" #include "wintypes.h"
#include "winerror.h" #include "winerror.h"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Copyright 1994 Bob Amstadt * Copyright 1994 Bob Amstadt
*/ */
#include <stdio.h> #include <string.h>
#include "wingdi.h" #include "wingdi.h"
#include "gdi.h" #include "gdi.h"
#include "heap.h" #include "heap.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* 1998 Huw Davies * 1998 Huw Davies
*/ */
#include <stdio.h> #include <string.h>
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "win16drv.h" #include "win16drv.h"
#include "module.h" #include "module.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1998 Ulrich Weigand * Copyright 1998 Ulrich Weigand
*/ */
#include <string.h>
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "module.h" #include "module.h"
#include "debug.h" #include "debug.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <ctype.h> #include <ctype.h>
#include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <pwd.h> #include <pwd.h>
#include <unistd.h> #include <unistd.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "config.h" #include "config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/stat.h> #include <sys/stat.h>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* *
*/ */
#include <stdlib.h>
#include <assert.h> #include <assert.h>
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "callback.h" #include "callback.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#define DEBUG_MCIWAVE #define DEBUG_MCIWAVE
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* <presently under construction - contact hunnise@nortelnetworks.com> * <presently under construction - contact hunnise@nortelnetworks.com>
* *
*/ */
#include <string.h>
#include "winerror.h" #include "winerror.h"
#include "winnt.h" #include "winnt.h"
#include "winreg.h" #include "winreg.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <unistd.h> #include <unistd.h>
#include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "winbase.h" #include "winbase.h"
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#define DEBUG_MCIWAVE #define DEBUG_MCIWAVE
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#define EMULATE_SB16 #define EMULATE_SB16
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Copyright 1993, 1994 Alexandre Julliard * Copyright 1993, 1994 Alexandre Julliard
*/ */
#include <stdlib.h> #include <string.h>
#include "winbase.h" #include "winbase.h"
#include "brush.h" #include "brush.h"
#include "bitmap.h" #include "bitmap.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1993 Alexandre Julliard * Copyright 1993 Alexandre Julliard
*/ */
#include <stdlib.h>
#include "dc.h" #include "dc.h"
#include "metafile.h" #include "metafile.h"
#include "region.h" #include "region.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1993 Alexandre Julliard * Copyright 1993 Alexandre Julliard
*/ */
#include <string.h>
#include "pen.h" #include "pen.h"
#include "debug.h" #include "debug.h"
......
...@@ -80,6 +80,8 @@ SOFTWARE. ...@@ -80,6 +80,8 @@ SOFTWARE.
* the y-x-banding that's so nice to have... * the y-x-banding that's so nice to have...
*/ */
#include <stdlib.h>
#include <string.h>
#include "region.h" #include "region.h"
#include "winuser.h" #include "winuser.h"
#include "debug.h" #include "debug.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
*/ */
#include <stdlib.h> #include <string.h>
#include "wingdi.h" #include "wingdi.h"
#include "winuser.h" #include "winuser.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Copyright 1999 Francis Beaudet * Copyright 1999 Francis Beaudet
*/ */
#include <assert.h> #include <assert.h>
#include <string.h>
#include "windows.h" #include "windows.h"
#include "winerror.h" #include "winerror.h"
#include "oleauto.h" #include "oleauto.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <string.h>
#include "ole.h" #include "ole.h"
#include "ole2.h" #include "ole2.h"
#include "winerror.h" #include "winerror.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <assert.h> #include <assert.h>
#include <string.h>
#include "winerror.h" #include "winerror.h"
#include "k32obj.h" #include "k32obj.h"
#include "process.h" #include "process.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <assert.h> #include <assert.h>
#include <string.h>
#include "winerror.h" #include "winerror.h"
#include "k32obj.h" #include "k32obj.h"
#include "heap.h" #include "heap.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <assert.h> #include <assert.h>
#include <string.h>
#include "winerror.h" #include "winerror.h"
#include "k32obj.h" #include "k32obj.h"
#include "process.h" #include "process.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <assert.h> #include <assert.h>
#include <string.h>
#include "winerror.h" #include "winerror.h"
#include "k32obj.h" #include "k32obj.h"
#include "process.h" #include "process.h"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <assert.h> #include <assert.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <sys/errno.h> #include <sys/errno.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <assert.h> #include <assert.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/uio.h> #include <sys/uio.h>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* 1995 Alex Korobka * 1995 Alex Korobka
*/ */
#include <stdlib.h> #include <string.h>
#include "win.h" #include "win.h"
#include "user.h" #include "user.h"
#include "heap.h" #include "heap.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1995 Bernd Schmidt * Copyright 1995 Bernd Schmidt
*/ */
#include <string.h>
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "dlgs.h" #include "dlgs.h"
#include "heap.h" #include "heap.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#ifndef X_DISPLAY_MISSING #ifndef X_DISPLAY_MISSING
#include <stdlib.h>
#include <X11/cursorfont.h> #include <X11/cursorfont.h>
#include "ts_xlib.h" #include "ts_xlib.h"
#include "ts_xutil.h" #include "ts_xutil.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment