Commit 3fbb8dc8 authored by Michael Veksler's avatar Michael Veksler Committed by Alexandre Julliard

- Fix headers to include less or smaller header files.

- Fix header and source files to include missing header files to avoid warnings and errors.
parent 4ede2963
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "bitmap.h" #include "bitmap.h"
#include "win.h" #include "win.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "sysmetrics.h" #include "sysmetrics.h"
#include "task.h" #include "task.h"
#include "heap.h" #include "heap.h"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#ifndef __WINE_CURSORICON_H #ifndef __WINE_CURSORICON_H
#define __WINE_CURSORICON_H #define __WINE_CURSORICON_H
#include "wingdi.h" #include "wintypes.h"
#pragma pack(1) #pragma pack(1)
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#ifdef CONFIG_IPC #ifdef CONFIG_IPC
#include "windows.h" #include "wintypes.h"
#define DDE_ATOMS 157 /* a prime number for hashing */ #define DDE_ATOMS 157 /* a prime number for hashing */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <X11/extensions/XShm.h> #include <X11/extensions/XShm.h>
#endif /* defined(HAVE_LIBXXSHM) */ #endif /* defined(HAVE_LIBXXSHM) */
#include "winbase.h" /* LARGE_INTEGER ... */ #include "winnt.h" /* LARGE_INTEGER ... */
#include "wingdi.h" /* PALETTE stuff ... */ #include "wingdi.h" /* PALETTE stuff ... */
#include "wine/obj_base.h" #include "wine/obj_base.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#ifndef __WINE_DISPDIB_H #ifndef __WINE_DISPDIB_H
#define __WINE_DISPDIB_H #define __WINE_DISPDIB_H
#include "wingdi.h" #include "wingdi.h" /* for LPBITMAPINFO */
/* error codes */ /* error codes */
#define DISPLAYDIB_NOERROR 0x0000 #define DISPLAYDIB_NOERROR 0x0000
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#define __WINE_DOSEXE_H #define __WINE_DOSEXE_H
#include <sys/types.h> /* pid_t */ #include <sys/types.h> /* pid_t */
#include "winbase.h" #include "winbase.h" /* for LPSTARTUPINFO32A */
#include "sig_context.h" #include "sig_context.h"
typedef struct _DOSTASK { typedef struct _DOSTASK {
......
#ifndef __WINE_DSOUND_H #ifndef __WINE_DSOUND_H
#define __WINE_DSOUND_H #define __WINE_DSOUND_H
#include "wintypes.h" #include "winbase.h" /* for CRITICAL_SECTION */
#include "mmsystem.h" #include "mmsystem.h"
#include "d3d.h" /*FIXME: Need to break out d3dtypes.h */ #include "d3d.h" /*FIXME: Need to break out d3dtypes.h */
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include "wintypes.h"
typedef LPSTR HPSTR; /* a huge version of LPSTR */ typedef LPSTR HPSTR; /* a huge version of LPSTR */
typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */ typedef LPCSTR HPCSTR; /* a huge version of LPCSTR */
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef __WINE_PATH_H #ifndef __WINE_PATH_H
#define __WINE_PATH_H #define __WINE_PATH_H
#include "wintypes.h"
/* It should not be necessary to access the contents of the GdiPath /* It should not be necessary to access the contents of the GdiPath
* structure directly; if you find that the exported functions don't * structure directly; if you find that the exported functions don't
* allow you to do what you want, then please place a new exported * allow you to do what you want, then please place a new exported
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef __WINE_PROGRESS_H #ifndef __WINE_PROGRESS_H
#define __WINE_PROGRESS_H #define __WINE_PROGRESS_H
#include "wintypes.h"
typedef struct typedef struct
{ {
INT32 CurVal; /* Current progress value */ INT32 CurVal; /* Current progress value */
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#define __WINE_QUEUE_H #define __WINE_QUEUE_H
#include "wintypes.h" #include "wintypes.h"
#include "wine/winuser16.h" #include "winuser.h"
#include "thread.h" #include "thread.h"
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#ifndef __WINE_RESOURCE_H #ifndef __WINE_RESOURCE_H
#define __WINE_RESOURCE_H #define __WINE_RESOURCE_H
#include "wintypes.h"
#ifndef __WRC_RSC_H #ifndef __WRC_RSC_H
#include "wrc_rsc.h" #include "wrc_rsc.h"
#endif #endif
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#define __WINE__STRUCT32_H #define __WINE__STRUCT32_H
#include "winbase.h" #include "winbase.h"
#include "wine/winuser16.h"
#include "queue.h" #include "queue.h"
extern void STRUCT32_MINMAXINFO32to16( const MINMAXINFO32*, MINMAXINFO16* ); extern void STRUCT32_MINMAXINFO32to16( const MINMAXINFO32*, MINMAXINFO16* );
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
#ifndef __WINE_UPDOWN_H #ifndef __WINE_UPDOWN_H
#define __WINE_UPDOWN_H #define __WINE_UPDOWN_H
#include "wintypes.h"
#include "commctrl.h"
typedef struct typedef struct
{ {
UINT32 AccelCount; /* Number of elements in AccelVect */ UINT32 AccelCount; /* Number of elements in AccelVect */
......
...@@ -13,11 +13,11 @@ extern "C" { ...@@ -13,11 +13,11 @@ extern "C" {
#include "winreg.h" #include "winreg.h"
#include "winnetwk.h" #include "winnetwk.h"
#include "winver.h" #include "winver.h"
#include "winreg.h"
#include "lzexpand.h" #include "lzexpand.h"
#include "shellapi.h" #include "shellapi.h"
#include "ole2.h" #include "ole2.h"
#include "winnls.h" #include "winnls.h"
#include "objbase.h"
/* FIXME: remove the following includes which are not in SDK */ /* FIXME: remove the following includes which are not in SDK */
#include "ntdll.h" #include "ntdll.h"
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#define __WINE_WINPOS_H #define __WINE_WINPOS_H
#include "win.h" #include "win.h"
#include "wine/winuser16.h" /* for WINDOWPOS16 */
#define DWP_MAGIC ((INT32)('W' | ('P' << 8) | ('O' << 16) | ('S' << 24))) #define DWP_MAGIC ((INT32)('W' | ('P' << 8) | ('O' << 16) | ('S' << 24)))
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "bitmap.h" #include "bitmap.h"
#include "comm.h" #include "comm.h"
#include "neexe.h" #include "neexe.h"
...@@ -140,7 +141,6 @@ BOOL32 WINAPI MAIN_KernelInit(HINSTANCE32 hinstDLL, DWORD fdwReason, LPVOID lpvR ...@@ -140,7 +141,6 @@ BOOL32 WINAPI MAIN_KernelInit(HINSTANCE32 hinstDLL, DWORD fdwReason, LPVOID lpvR
NE_SetEntryPoint( hModule, 194, DOSMEM_BiosSysSeg ); /* KERNEL.194: __F000H */ NE_SetEntryPoint( hModule, 194, DOSMEM_BiosSysSeg ); /* KERNEL.194: __F000H */
#undef SET_ENTRY_POINT #undef SET_ENTRY_POINT
} }
return TRUE; return TRUE;
} }
......
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
#include <ctype.h> #include <ctype.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "winbase.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "win.h" #include "win.h"
#include "heap.h" #include "heap.h"
#include "message.h" #include "message.h"
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
# include <resolv.h> # include <resolv.h>
#endif #endif
#include "wine/winuser16.h"
#include "winsock.h" #include "winsock.h"
#include "heap.h" #include "heap.h"
#include "ldt.h" #include "ldt.h"
......
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
* and long term pointers to 16 bit space in here * and long term pointers to 16 bit space in here
*/ */
#include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "winbase.h"
#include "windef.h" #include "windef.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
...@@ -30,10 +30,8 @@ ...@@ -30,10 +30,8 @@
#include "ldt.h" #include "ldt.h"
#include "user.h" #include "user.h"
#include "driver.h" #include "driver.h"
#include "file.h"
#include "mmsystem.h" #include "mmsystem.h"
#include "multimedia.h" #include "multimedia.h"
#include "xmalloc.h"
#include "callback.h" #include "callback.h"
#include "module.h" #include "module.h"
#include "selectors.h" #include "selectors.h"
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "dce.h" #include "dce.h"
#include "sysmetrics.h" #include "sysmetrics.h"
#include "cursoricon.h" #include "cursoricon.h"
#include "heap.h"
#include "hook.h" #include "hook.h"
#include "menu.h" #include "menu.h"
#include "message.h" #include "message.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