summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-05 18:01:35 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-05 18:01:35 -0800
commitda8af2618143577c36ba7fe7656bb6e296616438 (patch)
treec4c116f4cfb57244283115e731af98914aed7c16
parentaf15f44aabf3fccf096e04d73f4e6e2fd8ca3771 (diff)
Ensure all *.c files include config.h before any other headers
Makes sure that any flags set in config.h that affect system headers are applied equally across all source files. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--BitEdit.c5
-rw-r--r--Bitmap.c4
-rw-r--r--CutPaste.c4
-rw-r--r--Dialog.c4
-rw-r--r--Handlers.c4
-rw-r--r--ReqMach.c4
-rw-r--r--atobm.c4
7 files changed, 27 insertions, 2 deletions
diff --git a/BitEdit.c b/BitEdit.c
index a9ec29f..a1c6dab 100644
--- a/BitEdit.c
+++ b/BitEdit.c
@@ -30,8 +30,9 @@ from The Open Group.
* Author: Davor Matic, MIT X Consortium
*/
-
-
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/Bitmap.c b/Bitmap.c
index d074058..b7b1589 100644
--- a/Bitmap.c
+++ b/Bitmap.c
@@ -30,6 +30,10 @@ from The Open Group.
* Author: Davor Matic, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <X11/Xaw/XawInit.h>
diff --git a/CutPaste.c b/CutPaste.c
index 49d6f9c..7bd92c7 100644
--- a/CutPaste.c
+++ b/CutPaste.c
@@ -30,6 +30,10 @@ from The Open Group.
* Author: Davor Matic, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <X11/Xatom.h>
diff --git a/Dialog.c b/Dialog.c
index bf00b05..b005538 100644
--- a/Dialog.c
+++ b/Dialog.c
@@ -30,6 +30,10 @@ from The Open Group.
* Author: Davor Matic, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
diff --git a/Handlers.c b/Handlers.c
index c29c0b3..02c2049 100644
--- a/Handlers.c
+++ b/Handlers.c
@@ -30,6 +30,10 @@ from The Open Group.
* Author: Davor Matic, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include "BitmapP.h"
diff --git a/ReqMach.c b/ReqMach.c
index 1a27f02..df2905d 100644
--- a/ReqMach.c
+++ b/ReqMach.c
@@ -30,6 +30,10 @@ from The Open Group.
* Author: Davor Matic, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <X11/Xfuncs.h>
diff --git a/atobm.c b/atobm.c
index 7d25906..d292876 100644
--- a/atobm.c
+++ b/atobm.c
@@ -31,6 +31,10 @@ from The Open Group.
* Author: Jim Fulton, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <X11/Xos.h>