Commit 1425941e authored by François Gouget's avatar François Gouget Committed by Alexandre Julliard

Fix the #include order for config.h.

Add #include "config.h" directives where needed.
parent 2663b80f
...@@ -6925,6 +6925,11 @@ fi ...@@ -6925,6 +6925,11 @@ fi
cat >> confdefs.h <<\EOF
#define __WINE_CONFIG_H 1
EOF
MAKE_RULES=Make.rules MAKE_RULES=Make.rules
......
...@@ -1182,6 +1182,9 @@ AC_SUBST(GCC_NO_BUILTIN) ...@@ -1182,6 +1182,9 @@ AC_SUBST(GCC_NO_BUILTIN)
dnl **** Generate output files **** dnl **** Generate output files ****
AC_DEFINE(__WINE_CONFIG_H, 1,
[This must always be defined to allow checking for config.h inclusion])
AC_OUTPUT_COMMANDS([ AC_OUTPUT_COMMANDS([
extra_subdirs="\ extra_subdirs="\
dlls/ddraw/d3ddevice \ dlls/ddraw/d3ddevice \
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
It does not currently support changing the title bar. It does not currently support changing the title bar.
*/ */
#include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
* This is probably not the meaning this style has in MS-Windows. * This is probably not the meaning this style has in MS-Windows.
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
This file contains all MESA common code */ This file contains all MESA common code */
#include "config.h"
#include "windef.h" #include "windef.h"
#include "wine/obj_base.h" #include "wine/obj_base.h"
#include "ddraw.h" #include "ddraw.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* *
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <string.h> #include <string.h>
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
* *
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <stdlib.h> #include <stdlib.h>
......
#ifndef __WINE_MSVCRT_H #ifndef __WINE_MSVCRT_H
#define __WINE_MSVCRT_H #define __WINE_MSVCRT_H
#include "config.h" #include <stdarg.h>
#include <ctype.h>
#include <string.h>
#include "windef.h" #include "windef.h"
#include "debugtools.h" #include "debugtools.h"
#include "winbase.h" #include "winbase.h"
#include "winerror.h" #include "winerror.h"
#include "winnls.h" #include "winnls.h"
#include <stdarg.h>
#include <ctype.h>
#include <string.h>
/* TLS data */ /* TLS data */
extern DWORD MSVCRT_tls_index; extern DWORD MSVCRT_tls_index;
......
/* /*
* Helper functions for ntdll * Helper functions for ntdll
*/ */
#include <time.h>
#include <math.h>
#include "config.h" #include "config.h"
#include <time.h>
#include <math.h>
#include "debugtools.h" #include "debugtools.h"
#include "ntdll_misc.h" #include "ntdll_misc.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* *
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -4,7 +4,10 @@ ...@@ -4,7 +4,10 @@
* Copyright 1999 Patrik Stridvall * Copyright 1999 Patrik Stridvall
*/ */
#include "config.h"
#include <string.h> #include <string.h>
#include "bitmap.h" #include "bitmap.h"
#include "gdi.h" #include "gdi.h"
#include "ttydrv.h" #include "ttydrv.h"
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
* Copyright 1999 Patrik Stridvall * Copyright 1999 Patrik Stridvall
*/ */
#include "config.h"
#include "bitmap.h" #include "bitmap.h"
#include "gdi.h" #include "gdi.h"
#include "ttydrv.h" #include "ttydrv.h"
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
* Copyright 1999 Patrik Stridvall * Copyright 1999 Patrik Stridvall
*/ */
#include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include "color.h" #include "color.h"
......
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
#ifndef __WINE_TTYDRV_H #ifndef __WINE_TTYDRV_H
#define __WINE_TTYDRV_H #define __WINE_TTYDRV_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#undef ERR #undef ERR
#ifdef HAVE_NCURSES_H #ifdef HAVE_NCURSES_H
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
* Copyright 1998 Patrik Stridvall * Copyright 1998 Patrik Stridvall
*/ */
#include "config.h"
#include "dinput.h" #include "dinput.h"
#include "gdi.h" #include "gdi.h"
#include "ttydrv.h" #include "ttydrv.h"
......
/* Definition for OSS drivers : wine multimedia system */ /* Definition for OSS drivers : wine multimedia system */
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#if defined(HAVE_SYS_SOUNDCARD_H) #if defined(HAVE_SYS_SOUNDCARD_H)
# include <sys/soundcard.h> # include <sys/soundcard.h>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
* whole stuff did not work anyway to other changes). * whole stuff did not work anyway to other changes).
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <string.h> #include <string.h>
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
* ws_XXXXent32 (winsock2.h) and 1-byte forced ws_XXXXent16 (winsock16.h). * ws_XXXXent32 (winsock2.h) and 1-byte forced ws_XXXXent16 (winsock16.h).
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
*/ */
#ifndef __WINE_DGA2_H #ifndef __WINE_DGA2_H
#define __WINE_DGA2_H #define __WINE_DGA2_H
#include "config.h"
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef HAVE_LIBXXF86DGA2 #ifdef HAVE_LIBXXF86DGA2
#include "ddrawi.h" #include "ddrawi.h"
......
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
*/ */
#ifndef __WINE_X11DDRAW_H #ifndef __WINE_X11DDRAW_H
#define __WINE_X11DDRAW_H #define __WINE_X11DDRAW_H
#include "config.h"
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include "ddrawi.h" #include "ddrawi.h"
extern LPDDRAWI_DDRAWSURFACE_LCL X11DRV_DD_Primary; extern LPDDRAWI_DDRAWSURFACE_LCL X11DRV_DD_Primary;
......
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
*/ */
#ifndef __WINE_XVIDMODE_H #ifndef __WINE_XVIDMODE_H
#define __WINE_XVIDMODE_H #define __WINE_XVIDMODE_H
#include "config.h"
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef HAVE_LIBXXF86VM #ifdef HAVE_LIBXXF86VM
#include "ddrawi.h" #include "ddrawi.h"
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
* *
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
......
...@@ -10,9 +10,12 @@ ...@@ -10,9 +10,12 @@
#ifndef __WINE_CDROM_H__ #ifndef __WINE_CDROM_H__
#define __WINE_CDROM_H__ #define __WINE_CDROM_H__
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include "config.h"
#include "windef.h" #include "windef.h"
#include "wine/windef16.h" #include "wine/windef16.h"
......
...@@ -538,3 +538,6 @@ ...@@ -538,3 +538,6 @@
/* Define if struct sockaddr_un contains sun_len */ /* Define if struct sockaddr_un contains sun_len */
#undef HAVE_SOCKADDR_SUN_LEN #undef HAVE_SOCKADDR_SUN_LEN
/* This must always be defined to allow checking for config.h inclusion */
#undef __WINE_CONFIG_H
...@@ -8,8 +8,11 @@ ...@@ -8,8 +8,11 @@
#ifndef __WINE_CONSOLE_H #ifndef __WINE_CONSOLE_H
#define __WINE_CONSOLE_H #define __WINE_CONSOLE_H
#ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <stdio.h> #include <stdio.h>
#include "config.h"
/* Can we compile with curses/ncurses? */ /* Can we compile with curses/ncurses? */
#if ( (defined(HAVE_LIBNCURSES) || defined(HAVE_LIBCURSES)) && \ #if ( (defined(HAVE_LIBNCURSES) || defined(HAVE_LIBCURSES)) && \
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#ifndef __WINE_GDI_H #ifndef __WINE_GDI_H
#define __WINE_GDI_H #define __WINE_GDI_H
#include "config.h"
#include "windef.h" #include "windef.h"
#include "wingdi.h" #include "wingdi.h"
#include "wine/wingdi16.h" #include "wine/wingdi16.h"
......
...@@ -7,9 +7,8 @@ ...@@ -7,9 +7,8 @@
#ifndef __WINE_HEAP_H #ifndef __WINE_HEAP_H
#define __WINE_HEAP_H #define __WINE_HEAP_H
#include "config.h"
#include <string.h> #include <string.h>
#include "winbase.h" #include "winbase.h"
#include "winnls.h" #include "winnls.h"
#include "wine/unicode.h" #include "wine/unicode.h"
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#ifndef __WINE_THREAD_H #ifndef __WINE_THREAD_H
#define __WINE_THREAD_H #define __WINE_THREAD_H
#include "config.h"
#include "ntdef.h" /* UNICODE_STRING */ #include "ntdef.h" /* UNICODE_STRING */
#include "wine/windef16.h" #include "wine/windef16.h"
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around shape calls. * Thread safe wrappers around shape calls.
* Always include this file instead of <X11/shape.h>. * Always include this file instead of <X11/shape.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_SHAPE_H #ifndef __WINE_TS_SHAPE_H
#define __WINE_TS_SHAPE_H #define __WINE_TS_SHAPE_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef HAVE_LIBXSHAPE #ifdef HAVE_LIBXSHAPE
#include <X11/IntrinsicP.h> #include <X11/IntrinsicP.h>
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around xf86dga calls. * Thread safe wrappers around xf86dga calls.
* Always include this file instead of <X11/xf86dga.h>. * Always include this file instead of <X11/xf86dga.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XF86DGA_H #ifndef __WINE_TS_XF86DGA_H
#define __WINE_TS_XF86DGA_H #define __WINE_TS_XF86DGA_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef HAVE_LIBXXF86DGA #ifdef HAVE_LIBXXF86DGA
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around xf86dga2 calls. * Thread safe wrappers around xf86dga2 calls.
* Always include this file instead of <X11/xf86dga2.h>. * Always include this file instead of <X11/xf86dga2.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XF86DGA2_H #ifndef __WINE_TS_XF86DGA2_H
#define __WINE_TS_XF86DGA2_H #define __WINE_TS_XF86DGA2_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef HAVE_LIBXXF86DGA2 #ifdef HAVE_LIBXXF86DGA2
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around xf86vmode calls. * Thread safe wrappers around xf86vmode calls.
* Always include this file instead of <X11/xf86vmode.h>. * Always include this file instead of <X11/xf86vmode.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XF86VMODE_H #ifndef __WINE_TS_XF86VMODE_H
#define __WINE_TS_XF86VMODE_H #define __WINE_TS_XF86VMODE_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include "windef.h" #include "windef.h"
#ifdef HAVE_LIBXXF86VM #ifdef HAVE_LIBXXF86VM
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around Xlib calls. * Thread safe wrappers around Xlib calls.
* Always include this file instead of <X11/Xlib.h>. * Always include this file instead of <X11/Xlib.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XLIB_H #ifndef __WINE_TS_XLIB_H
#define __WINE_TS_XLIB_H #define __WINE_TS_XLIB_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <X11/Xlib.h> #include <X11/Xlib.h>
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around xpm calls. * Thread safe wrappers around xpm calls.
* Always include this file instead of <X11/xpm.h>. * Always include this file instead of <X11/xpm.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XPM_H #ifndef __WINE_TS_XPM_H
#define __WINE_TS_XPM_H #define __WINE_TS_XPM_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef HAVE_LIBXXPM #ifdef HAVE_LIBXXPM
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around Xrender calls. * Thread safe wrappers around Xrender calls.
* Always include this file instead of <X11/Xrender.h>. * Always include this file instead of <X11/Xrender.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XRENDER_H #ifndef __WINE_TS_XRENDER_H
#define __WINE_TS_XRENDER_H #define __WINE_TS_XRENDER_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef HAVE_LIBXRENDER #ifdef HAVE_LIBXRENDER
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around Xresource calls. * Thread safe wrappers around Xresource calls.
* Always include this file instead of <X11/Xresource.h>. * Always include this file instead of <X11/Xresource.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XRESOURCE_H #ifndef __WINE_TS_XRESOURCE_H
#define __WINE_TS_XRESOURCE_H #define __WINE_TS_XRESOURCE_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <X11/Xlib.h> #include <X11/Xlib.h>
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around XShm calls. * Thread safe wrappers around XShm calls.
* Always include this file instead of <X11/XShm.h>. * Always include this file instead of <X11/XShm.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XSHM_H #ifndef __WINE_TS_XSHM_H
#define __WINE_TS_XSHM_H #define __WINE_TS_XSHM_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef HAVE_LIBXXSHM #ifdef HAVE_LIBXXSHM
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around Xutil calls. * Thread safe wrappers around Xutil calls.
* Always include this file instead of <X11/Xutil.h>. * Always include this file instead of <X11/Xutil.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XUTIL_H #ifndef __WINE_TS_XUTIL_H
#define __WINE_TS_XUTIL_H #define __WINE_TS_XUTIL_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <X11/Xlib.h> #include <X11/Xlib.h>
...@@ -24,7 +25,6 @@ extern XSizeHints * TSXAllocSizeHints(void); ...@@ -24,7 +25,6 @@ extern XSizeHints * TSXAllocSizeHints(void);
extern XWMHints * TSXAllocWMHints(void); extern XWMHints * TSXAllocWMHints(void);
extern int TSXClipBox(Region, XRectangle*); extern int TSXClipBox(Region, XRectangle*);
extern Region TSXCreateRegion(void); extern Region TSXCreateRegion(void);
extern int TSXDeleteContext(Display*, XID, XContext);
extern int TSXDestroyRegion(Region); extern int TSXDestroyRegion(Region);
extern int TSXEmptyRegion(Region); extern int TSXEmptyRegion(Region);
extern int TSXEqualRegion(Region, Region); extern int TSXEqualRegion(Region, Region);
...@@ -54,6 +54,7 @@ extern int TSXDestroyImage(struct _XImage *); ...@@ -54,6 +54,7 @@ extern int TSXDestroyImage(struct _XImage *);
extern struct _XImage * TSXSubImage(struct _XImage *, int, int, unsigned int, unsigned int); extern struct _XImage * TSXSubImage(struct _XImage *, int, int, unsigned int, unsigned int);
extern int TSXAddPixel(struct _XImage *, long); extern int TSXAddPixel(struct _XImage *, long);
extern XContext TSXUniqueContext(void); extern XContext TSXUniqueContext(void);
extern int TSXDeleteContext(Display*,XID,XContext);
#endif /* __WINE_TS_XUTIL_H */ #endif /* __WINE_TS_XUTIL_H */
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
* Thread safe wrappers around xvideo calls. * Thread safe wrappers around xvideo calls.
* Always include this file instead of <X11/xvideo.h>. * Always include this file instead of <X11/xvideo.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_XVIDEO_H #ifndef __WINE_TS_XVIDEO_H
#define __WINE_TS_XVIDEO_H #define __WINE_TS_XVIDEO_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#ifdef HAVE_XVIDEO #ifdef HAVE_XVIDEO
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
#ifndef __WINE_WINE_PORT_H #ifndef __WINE_WINE_PORT_H
#define __WINE_WINE_PORT_H #define __WINE_WINE_PORT_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <fcntl.h> #include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
#ifndef __WINE_WINE_GL_H #ifndef __WINE_WINE_GL_H
#define __WINE_WINE_GL_H #define __WINE_WINE_GL_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#if defined(HAVE_OPENGL) #if defined(HAVE_OPENGL)
......
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
#ifndef __WINE_X11DRV_H #ifndef __WINE_X11DRV_H
#define __WINE_X11DRV_H #define __WINE_X11DRV_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xresource.h> #include <X11/Xresource.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1996 Alexandre Julliard * Copyright 1996 Alexandre Julliard
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#ifdef __BEOS__ #ifdef __BEOS__
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* IDEA(s): could be used to split up shell32,comctl32... * IDEA(s): could be used to split up shell32,comctl32...
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1995 Alexandre Julliard * Copyright 1995 Alexandre Julliard
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* Copyright 1997 Alex Korobka * Copyright 1997 Alex Korobka
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
/* 0xffff sometimes seems to mean: CURRENT_DS */ /* 0xffff sometimes seems to mean: CURRENT_DS */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <sys/types.h> #include <sys/types.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1997 Alexandre Julliard * Copyright 1997 Alexandre Julliard
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* Copyright 1997-1998 Marcus Meissner * Copyright 1997-1998 Marcus Meissner
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <ctype.h> #include <ctype.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* Copyright 1996 Marcus Meissner * Copyright 1996 Marcus Meissner
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <signal.h> #include <signal.h>
...@@ -820,7 +821,7 @@ LPVOID DOSMEM_MapRealToLinear(DWORD x) ...@@ -820,7 +821,7 @@ LPVOID DOSMEM_MapRealToLinear(DWORD x)
LPVOID lin; LPVOID lin;
lin=DOSMEM_dosmem+(x&0xffff)+(((x&0xffff0000)>>16)*16); lin=DOSMEM_dosmem+(x&0xffff)+(((x&0xffff0000)>>16)*16);
TRACE_(selector)("(0x%08lx) returns 0x%p.\n", x, lin ); TRACE_(selector)("(0x%08lx) returns %p.\n", x, lin );
return lin; return lin;
} }
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1995 Alexandre Julliard * Copyright 1995 Alexandre Julliard
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <unistd.h> #include <unistd.h>
......
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
* BIOS interrupt 10h handler * BIOS interrupt 10h handler
*/ */
#include "config.h"
#include <stdlib.h> #include <stdlib.h>
#include "miscemu.h" #include "miscemu.h"
#include "vga.h" #include "vga.h"
#include "debugtools.h" #include "debugtools.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright (C) 1998 Alexandre Julliard * Copyright (C) 1998 Alexandre Julliard
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1998 Alexandre Julliard * Copyright 1998 Alexandre Julliard
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <signal.h> #include <signal.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1996 Alexandre Julliard * Copyright 1996 Alexandre Julliard
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright (C) 1998 Alexandre Julliard * Copyright (C) 1998 Alexandre Julliard
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
......
...@@ -106,14 +106,15 @@ foreach $name (@dolist) { ...@@ -106,14 +106,15 @@ foreach $name (@dolist) {
* Thread safe wrappers around $name calls. * Thread safe wrappers around $name calls.
* Always include this file instead of <X11/$name.h>. * Always include this file instead of <X11/$name.h>.
* This file was generated automatically by tools/make_X11wrappers * This file was generated automatically by tools/make_X11wrappers
* * DO NOT EDIT!
* Copyright 1998 Kristian Nielsen
*/ */
#ifndef __WINE_TS_$ucname\_H #ifndef __WINE_TS_$ucname\_H
#define __WINE_TS_$ucname\_H #define __WINE_TS_$ucname\_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
$pre_file $pre_file
$x11_incl#include <X11/$extensions_dir$inc_name.h> $x11_incl#include <X11/$extensions_dir$inc_name.h>
......
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
#ifndef __WINE_BUILD_H #ifndef __WINE_BUILD_H
#define __WINE_BUILD_H #define __WINE_BUILD_H
#include "config.h" #ifndef __WINE_CONFIG_H
# error You must include config.h to use this header
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* Copyright 1999 Ulrich Weigand * Copyright 1999 Ulrich Weigand
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
......
/* small utility functions for winebuild */ /* small utility functions for winebuild */
#include "config.h"
#include <ctype.h> #include <ctype.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -79,8 +79,6 @@ cident [a-zA-Z_][0-9a-zA-Z_]* ...@@ -79,8 +79,6 @@ cident [a-zA-Z_][0-9a-zA-Z_]*
/*#define LEX_DEBUG*/ /*#define LEX_DEBUG*/
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -138,8 +138,6 @@ cident [a-zA-Z_][0-9a-zA-Z_]* ...@@ -138,8 +138,6 @@ cident [a-zA-Z_][0-9a-zA-Z_]*
ul [uUlL]|[uUlL][lL]|[lL][uU]|[lL][lL][uU]|[uU][lL][lL]|[lL][uU][lL] ul [uUlL]|[uUlL][lL]|[lL][uU]|[lL][lL][uU]|[uU][lL][lL]|[lL][uU][lL]
%{ %{
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
* *
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <stdlib.h> #include <stdlib.h>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
* classes are getting registered with wrong hInstance. * classes are getting registered with wrong hInstance.
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <stdlib.h> #include <stdlib.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* Copyright 1993, 1994, 1996 Alexandre Julliard * Copyright 1993, 1994, 1996 Alexandre Julliard
*/ */
#include "config.h"
#include "wine/port.h" #include "wine/port.h"
#include <ctype.h> #include <ctype.h>
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
* *
*/ */
#include "ts_xlib.h" #include "config.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include "ts_xlib.h"
#include "winreg.h" #include "winreg.h"
#include "clipboard.h" #include "clipboard.h"
#include "win.h" #include "win.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