From ca502149fb2abad58446ebf234aa5e1e40ed4517 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 6 Feb 2023 17:55:31 -0800 Subject: 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 --- actions.c | 4 ++++ comm.c | 4 ++++ editres.c | 4 ++++ geometry.c | 4 ++++ handler.c | 4 ++++ setvalues.c | 4 ++++ svpopup.c | 4 ++++ utils.c | 4 ++++ widgets.c | 4 ++++ wtree.c | 4 ++++ 10 files changed, 40 insertions(+) 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 #include #include 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 #include /* Get standard string definitions. */ #include 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 #include #include 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 #include #include 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 #include 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 #include #include 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 #include /* Get standard string definitions. */ #include 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 #include #include 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 #include #include /* 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 #include #include -- cgit v1.2.3