From cf6e9b5a56d1f57fd91997bdba8e1e12fa468c72 Mon Sep 17 00:00:00 2001 From: Boris Boesler Date: Mon, 5 Mar 2001 20:10:03 +0000 Subject: [PATCH] added #ifdef HAVE_CONFIG_H # include #endif [r108] --- ir/common/common.c | 4 ++++ ir/common/common.h | 10 +++++++++- ir/common/firm.c | 4 ++++ ir/common/panic.c | 4 ++++ ir/debug/debinfo.c | 4 ++++ 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/ir/common/common.c b/ir/common/common.c index 54308f9a3..92c7137a3 100644 --- a/ir/common/common.c +++ b/ir/common/common.c @@ -7,6 +7,10 @@ ** common.c: */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "common.h" #include "irgraph.h" diff --git a/ir/common/common.h b/ir/common/common.h index 3f2f98d8c..968157200 100644 --- a/ir/common/common.h +++ b/ir/common/common.h @@ -27,7 +27,15 @@ /* If this is defined debuging aids are created, e.g. a field in ir_node uniquely numbering the nodes. */ -#define DEBUG_libfirm 1 +/* #define DEBUG_libfirm 1 */ +/* + * this is now set by the configure script as an option + * use +#ifdef HAVE_CONFIG_H +# include +#endif + * instead + */ /* a list of firm kinds */ typedef enum { diff --git a/ir/common/firm.c b/ir/common/firm.c index a448a7f48..94fda9f7f 100644 --- a/ir/common/firm.c +++ b/ir/common/firm.c @@ -5,6 +5,10 @@ ** */ +#ifdef HAVE_CONFIG_H +# include +#endif + # include # include "ident_t.h" # include "firm.h" diff --git a/ir/common/panic.c b/ir/common/panic.c index d78757c68..5c4c99b4a 100644 --- a/ir/common/panic.c +++ b/ir/common/panic.c @@ -5,6 +5,10 @@ ** */ +#ifdef HAVE_CONFIG_H +# include +#endif + # include "panic.h" # include "xprintf.h" diff --git a/ir/debug/debinfo.c b/ir/debug/debinfo.c index 5ac7f2be1..7f077319b 100644 --- a/ir/debug/debinfo.c +++ b/ir/debug/debinfo.c @@ -11,6 +11,10 @@ ** by a real implementation. */ +#ifdef HAVE_CONFIG_H +# include +#endif + #include "debinfo.h" inline void -- 2.20.1