summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--composite/compalloc.c3
-rw-r--r--composite/compext.c3
-rw-r--r--composite/compinit.c3
-rw-r--r--composite/compwindow.c3
-rwxr-xr-xdamageext/damageext.c3
-rw-r--r--fb/fbcompose.c4
-rw-r--r--fb/fbedge.c3
-rwxr-xr-xmiext/damage/damage.c3
-rw-r--r--render/filter.c3
-rw-r--r--render/picture.c3
-rwxr-xr-xxfixes/cursor.c3
-rwxr-xr-xxfixes/region.c3
-rwxr-xr-xxfixes/saveset.c3
-rwxr-xr-xxfixes/select.c3
-rwxr-xr-xxfixes/xfixes.c3
-rw-r--r--xkb/XKBAlloc.c13
-rw-r--r--xkb/XKBGAlloc.c19
-rw-r--r--xkb/XKBMAlloc.c11
-rw-r--r--xkb/XKBMisc.c11
-rw-r--r--xkb/maprules.c9
-rw-r--r--xkb/xkbconfig.c11
-rw-r--r--xkb/xkberrs.c5
-rw-r--r--xkb/xkbfmisc.c13
-rw-r--r--xkb/xkbout.c15
-rw-r--r--xkb/xkbtext.c15
-rw-r--r--xkb/xkmread.c15
26 files changed, 64 insertions, 119 deletions
diff --git a/composite/compalloc.c b/composite/compalloc.c
index 005c16209..aabacbe7b 100644
--- a/composite/compalloc.c
+++ b/composite/compalloc.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "compint.h"
void
diff --git a/composite/compext.c b/composite/compext.c
index e2b316edd..8b1d45403 100644
--- a/composite/compext.c
+++ b/composite/compext.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "compint.h"
static CARD8 CompositeReqCode;
diff --git a/composite/compinit.c b/composite/compinit.c
index bc4099ba7..07048dbb6 100644
--- a/composite/compinit.c
+++ b/composite/compinit.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "compint.h"
int CompScreenPrivateIndex;
diff --git a/composite/compwindow.c b/composite/compwindow.c
index f12cdf7ae..2f5e83cda 100644
--- a/composite/compwindow.c
+++ b/composite/compwindow.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "compint.h"
#ifdef COMPOSITE_DEBUG
diff --git a/damageext/damageext.c b/damageext/damageext.c
index 26015c435..616d55ecc 100755
--- a/damageext/damageext.c
+++ b/damageext/damageext.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "damageextint.h"
unsigned char DamageReqCode;
diff --git a/fb/fbcompose.c b/fb/fbcompose.c
index 8cb0c86cc..6cbf2daf6 100644
--- a/fb/fbcompose.c
+++ b/fb/fbcompose.c
@@ -24,13 +24,11 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
+
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "fb.h"
#ifdef RENDER
diff --git a/fb/fbedge.c b/fb/fbedge.c
index f3311c6df..fc52bc975 100644
--- a/fb/fbedge.c
+++ b/fb/fbedge.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "fb.h"
#ifdef RENDER
diff --git a/miext/damage/damage.c b/miext/damage/damage.c
index dfebffe90..9fb3d8ee3 100755
--- a/miext/damage/damage.c
+++ b/miext/damage/damage.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include <X11/X.h>
#include "scrnintstr.h"
#include "windowstr.h"
diff --git a/render/filter.c b/render/filter.c
index d2e8bcc03..bee26dde7 100644
--- a/render/filter.c
+++ b/render/filter.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include <X11/misc.h>
#include "scrnintstr.h"
#include <X11/os.h>
diff --git a/render/picture.c b/render/picture.c
index e83b1d07d..a13ac5d05 100644
--- a/render/picture.c
+++ b/render/picture.c
@@ -27,9 +27,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include <X11/misc.h>
#include "scrnintstr.h"
#include <X11/os.h>
diff --git a/xfixes/cursor.c b/xfixes/cursor.c
index 25b0fac6e..6895b6f00 100755
--- a/xfixes/cursor.c
+++ b/xfixes/cursor.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "xfixesint.h"
#include "scrnintstr.h"
#include "cursorstr.h"
diff --git a/xfixes/region.c b/xfixes/region.c
index 1ee2cd744..d317f7313 100755
--- a/xfixes/region.c
+++ b/xfixes/region.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "xfixesint.h"
#include "scrnintstr.h"
#ifdef RENDER
diff --git a/xfixes/saveset.c b/xfixes/saveset.c
index 780aeb57b..9ebf24584 100755
--- a/xfixes/saveset.c
+++ b/xfixes/saveset.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "xfixesint.h"
int
diff --git a/xfixes/select.c b/xfixes/select.c
index 71addd470..4c7a49def 100755
--- a/xfixes/select.c
+++ b/xfixes/select.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "xfixesint.h"
static RESTYPE SelectionClientType, SelectionWindowType;
diff --git a/xfixes/xfixes.c b/xfixes/xfixes.c
index 38e9b39c1..b2cd4afaa 100755
--- a/xfixes/xfixes.c
+++ b/xfixes/xfixes.c
@@ -26,9 +26,6 @@
#include <dix-config.h>
#endif
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include "xfixesint.h"
unsigned char XFixesReqCode;
diff --git a/xkb/XKBAlloc.c b/xkb/XKBAlloc.c
index c415380ee..9430ac0ed 100644
--- a/xkb/XKBAlloc.c
+++ b/xkb/XKBAlloc.c
@@ -28,13 +28,12 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
+#elif defined(HAVE_CONFIG_H)
+#include <config.h>
#endif
#ifndef XKB_IN_SERVER
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include <stdio.h>
#define NEED_REPLIES
#define NEED_EVENTS
@@ -47,14 +46,14 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#else
#include <stdio.h>
-#include "X.h"
+#include <X11/X.h>
#define NEED_EVENTS
#define NEED_REPLIES
-#include "Xproto.h"
+#include <X11/Xproto.h>
#include "misc.h"
#include "inputstr.h"
-#include "XKBsrv.h"
-#include "XKBgeom.h"
+#include <X11/extensions/XKBsrv.h>
+#include <X11/extensions/XKBgeom.h>
#endif /* XKB_IN_SERVER */
diff --git a/xkb/XKBGAlloc.c b/xkb/XKBGAlloc.c
index d5b9a1c93..fddb770b6 100644
--- a/xkb/XKBGAlloc.c
+++ b/xkb/XKBGAlloc.c
@@ -26,18 +26,17 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
/* $XFree86: xc/lib/X11/XKBGAlloc.c,v 3.4 2001/01/17 19:41:48 dawes Exp $ */
-#define NEED_EVENTS
-#define NEED_REPLIES
-
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
+#elif defined(HAVE_CONFIG_H)
+#include <config.h>
#endif
+#define NEED_EVENTS
+#define NEED_REPLIES
+
#ifndef XKB_IN_SERVER
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include <stdio.h>
#include "Xlibint.h"
#include "XKBlibint.h"
@@ -47,12 +46,12 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#else
#include <stdio.h>
-#include "X.h"
-#include "Xproto.h"
+#include <X11/X.h>
+#include <X11/Xproto.h>
#include "misc.h"
#include "inputstr.h"
-#include "XKBsrv.h"
-#include "XKBgeom.h"
+#include <X11/extensions/XKBsrv.h>
+#include <X11/extensions/XKBgeom.h>
#endif /* XKB_IN_SERVER */
diff --git a/xkb/XKBMAlloc.c b/xkb/XKBMAlloc.c
index db0020691..91d87d57c 100644
--- a/xkb/XKBMAlloc.c
+++ b/xkb/XKBMAlloc.c
@@ -28,13 +28,12 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
+#elif defined(HAVE_CONFIG_H)
+#include <config.h>
#endif
#ifndef XKB_IN_SERVER
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include <stdio.h>
#define NEED_REPLIES
#define NEED_EVENTS
@@ -46,15 +45,15 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#else
#include <stdio.h>
-#include "X.h"
+#include <X11/X.h>
#define NEED_EVENTS
#define NEED_REPLIES
-#include "Xproto.h"
+#include <X11/Xproto.h>
#include "misc.h"
#include "inputstr.h"
#include <X11/keysym.h>
#define XKBSRV_NEED_FILE_FUNCS
-#include "XKBsrv.h"
+#include <X11/extensions/XKBsrv.h>
#endif /* XKB_IN_SERVER */
diff --git a/xkb/XKBMisc.c b/xkb/XKBMisc.c
index 6ad364127..09f361c19 100644
--- a/xkb/XKBMisc.c
+++ b/xkb/XKBMisc.c
@@ -28,13 +28,12 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
+#elif defined(HAVE_CONFIG_H)
+#include <config.h>
#endif
#ifndef XKB_IN_SERVER
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
#include <stdio.h>
#define NEED_REPLIES
#define NEED_EVENTS
@@ -46,15 +45,15 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#else
#include <stdio.h>
-#include "X.h"
+#include <X11/X.h>
#define NEED_EVENTS
#define NEED_REPLIES
-#include "Xproto.h"
+#include <X11/Xproto.h>
#include "misc.h"
#include "inputstr.h"
#include <X11/keysym.h>
#define XKBSRV_NEED_FILE_FUNCS
-#include "XKBsrv.h"
+#include <X11/extensions/XKBsrv.h>
#endif /* XKB_IN_SERVER */
diff --git a/xkb/maprules.c b/xkb/maprules.c
index 03ca51eaa..53decdcad 100644
--- a/xkb/maprules.c
+++ b/xkb/maprules.c
@@ -28,11 +28,10 @@
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
-#endif
-
-#ifdef HAVE_CONFIG_H
+#elif defined(HAVE_CONFIG_H)
#include <config.h>
#endif
+
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
@@ -67,9 +66,9 @@
#include "misc.h"
#include "inputstr.h"
#include "dix.h"
-#include "XKBstr.h"
+#include <X11/extensions/XKBstr.h>
#define XKBSRV_NEED_FILE_FUNCS
-#include "XKBsrv.h"
+#include <X11/extensions/XKBsrv.h>
#endif
diff --git a/xkb/xkbconfig.c b/xkb/xkbconfig.c
index 3d582d1fb..7930979eb 100644
--- a/xkb/xkbconfig.c
+++ b/xkb/xkbconfig.c
@@ -28,11 +28,10 @@
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
-#endif
-
-#ifdef HAVE_CONFIG_H
+#elif defined(HAVE_CONFIG_H)
#include <config.h>
#endif
+
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
@@ -51,15 +50,15 @@
#else
-#include "X.h"
+#include <X11/X.h>
#define NEED_EVENTS
#include <X11/keysym.h>
-#include "Xproto.h"
+#include <X11/Xproto.h>
#include "misc.h"
#include "inputstr.h"
#include "dix.h"
#define XKBSRV_NEED_FILE_FUNCS
-#include "XKBsrv.h"
+#include <X11/extensions/XKBsrv.h>
#endif
#include <X11/extensions/XKBconfig.h>
diff --git a/xkb/xkberrs.c b/xkb/xkberrs.c
index 731d0b5cf..1b856bcaf 100644
--- a/xkb/xkberrs.c
+++ b/xkb/xkberrs.c
@@ -28,11 +28,10 @@
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
-#endif
-
-#ifdef HAVE_CONFIG_H
+#elif defined(HAVE_CONFIG_H)
#include <config.h>
#endif
+
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
diff --git a/xkb/xkbfmisc.c b/xkb/xkbfmisc.c
index f55ab5bdf..cca31f778 100644
--- a/xkb/xkbfmisc.c
+++ b/xkb/xkbfmisc.c
@@ -28,11 +28,10 @@
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
-#endif
-
-#ifdef HAVE_CONFIG_H
+#elif defined(HAVE_CONFIG_H)
#include <config.h>
#endif
+
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
@@ -51,16 +50,16 @@
#else
-#include "X.h"
+#include <X11/X.h>
#define NEED_EVENTS
#include <X11/keysym.h>
-#include "Xproto.h"
+#include <X11/Xproto.h>
#include "misc.h"
#include "inputstr.h"
#include "dix.h"
-#include "XKBstr.h"
+#include <X11/extensions/XKBstr.h>
#define XKBSRV_NEED_FILE_FUNCS 1
-#include "XKBsrv.h"
+#include <X11/extensions/XKBsrv.h>
#include <X11/extensions/XKBgeom.h>
#include "xkb.h"
diff --git a/xkb/xkbout.c b/xkb/xkbout.c
index cdf699509..b69fdfbb4 100644
--- a/xkb/xkbout.c
+++ b/xkb/xkbout.c
@@ -28,11 +28,10 @@
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
-#endif
-
-#ifdef HAVE_CONFIG_H
+#elif defined(HAVE_CONFIG_H)
#include <config.h>
#endif
+
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
@@ -49,19 +48,19 @@
#else
-#include "X.h"
+#include <X11/X.h>
#define NEED_EVENTS
#include <X11/keysym.h>
-#include "Xproto.h"
+#include <X11/Xproto.h>
#include "misc.h"
#include "inputstr.h"
#include "dix.h"
-#include "XKBstr.h"
+#include <X11/extensions/XKBstr.h>
#define XKBSRV_NEED_FILE_FUNCS 1
-#include "XKBsrv.h"
+#include <X11/extensions/XKBsrv.h>
#include <X11/extensions/XKBgeom.h>
-#include "extensions/XKBfile.h"
+#include <X11/extensions/XKBfile.h>
#endif
diff --git a/xkb/xkbtext.c b/xkb/xkbtext.c
index 0df7c894b..28592d242 100644
--- a/xkb/xkbtext.c
+++ b/xkb/xkbtext.c
@@ -28,11 +28,10 @@
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
-#endif
-
-#ifdef HAVE_CONFIG_H
+#elif defined(HAVE_CONFIG_H)
#include <config.h>
#endif
+
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
@@ -50,16 +49,16 @@
#else
-#include "X.h"
+#include <X11/X.h>
#define NEED_EVENTS
-#include "Xproto.h"
+#include <X11/Xproto.h>
#include "misc.h"
#include "inputstr.h"
#include "dix.h"
-#include "XKBstr.h"
+#include <X11/extensions/XKBstr.h>
#define XKBSRV_NEED_FILE_FUNCS 1
-#include "XKBsrv.h"
-#include "XKBgeom.h"
+#include <X11/extensions/XKBsrv.h>
+#include <X11/extensions/XKBgeom.h>
#endif
diff --git a/xkb/xkmread.c b/xkb/xkmread.c
index 3f38a4f96..f22941f67 100644
--- a/xkb/xkmread.c
+++ b/xkb/xkmread.c
@@ -28,11 +28,10 @@
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
-#endif
-
-#ifdef HAVE_CONFIG_H
+#elif defined(HAVE_CONFIG_H)
#include <config.h>
#endif
+
#include <stdio.h>
#include <X11/Xos.h>
@@ -52,16 +51,16 @@
#else
-#include "X.h"
+#include <X11/X.h>
#define NEED_EVENTS
-#include "Xproto.h"
+#include <X11/Xproto.h>
#include <X11/keysym.h>
#include "misc.h"
#include "inputstr.h"
-#include "XKBstr.h"
+#include <X11/extensions/XKBstr.h>
#define XKBSRV_NEED_FILE_FUNCS
-#include "XKBsrv.h"
-#include "XKBgeom.h"
+#include <X11/extensions/XKBsrv.h>
+#include <X11/extensions/XKBgeom.h>
Atom
XkbInternAtom(Display *dpy,char *str,Bool only_if_exists)