summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-06 17:55:31 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-06 17:55:31 -0800
commitca502149fb2abad58446ebf234aa5e1e40ed4517 (patch)
treedc8e6e51e2d9ee15d9b247402497e10747c13de3
parent2f248e96dcde3be96c21142c032f517aa5a06554 (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--actions.c4
-rw-r--r--comm.c4
-rw-r--r--editres.c4
-rw-r--r--geometry.c4
-rw-r--r--handler.c4
-rw-r--r--setvalues.c4
-rw-r--r--svpopup.c4
-rw-r--r--utils.c4
-rw-r--r--widgets.c4
-rw-r--r--wtree.c4
10 files changed, 40 insertions, 0 deletions
diff --git a/actions.c b/actions.c
index 86ce61b..ad5cfcc 100644
--- a/actions.c
+++ b/actions.c
@@ -23,6 +23,10 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <X11/Intrinsic.h>
diff --git a/comm.c b/comm.c
index 918dc7a..57e5671 100644
--- a/comm.c
+++ b/comm.c
@@ -32,6 +32,10 @@ from The Open Group.
* being edited.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h> /* Get standard string definitions. */
#include <X11/Xatom.h>
diff --git a/editres.c b/editres.c
index b588ed7..9826b40 100644
--- a/editres.c
+++ b/editres.c
@@ -23,6 +23,10 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <X11/Intrinsic.h>
diff --git a/geometry.c b/geometry.c
index 428addf..7ac890b 100644
--- a/geometry.c
+++ b/geometry.c
@@ -25,6 +25,10 @@ in this Software without prior written authorization from The Open Group.
* Author: Chris D. Peterson, 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/handler.c b/handler.c
index 6bcb7ea..9bf3b8b 100644
--- a/handler.c
+++ b/handler.c
@@ -24,6 +24,10 @@ in this Software without prior written authorization from The Open Group.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
diff --git a/setvalues.c b/setvalues.c
index 95df80b..640f4fa 100644
--- a/setvalues.c
+++ b/setvalues.c
@@ -25,6 +25,10 @@ in this Software without prior written authorization from The Open Group.
* Author: Chris D. Peterson, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xresource.h>
diff --git a/svpopup.c b/svpopup.c
index 1395179..4713f85 100644
--- a/svpopup.c
+++ b/svpopup.c
@@ -25,6 +25,10 @@ in this Software without prior written authorization from The Open Group.
* Author: Chris D. Peterson, MIT X Consortium
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h> /* Get standard string definitions. */
#include <X11/Xatom.h>
diff --git a/utils.c b/utils.c
index df49d36..69f45bd 100644
--- a/utils.c
+++ b/utils.c
@@ -23,6 +23,10 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <X11/Intrinsic.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
diff --git a/widgets.c b/widgets.c
index 8ec7640..4c3d4a7 100644
--- a/widgets.c
+++ b/widgets.c
@@ -27,6 +27,10 @@ in this Software without prior written authorization from The Open Group.
* Code for creating all widgets used by EditRes.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h> /* Get standard string definitions. */
diff --git a/wtree.c b/wtree.c
index e36c3b8..b53b024 100644
--- a/wtree.c
+++ b/wtree.c
@@ -23,6 +23,10 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
#include <X11/Intrinsic.h>
#include <X11/Xutil.h>