From 2fb1d78ea376841e4b95f33302bde2fd6b21076a Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 27 May 2004 07:23:22 +0000 Subject: [PATCH] Fixed compiling without statistics [r2955] --- ir/stat/firmstat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ir/stat/firmstat.c b/ir/stat/firmstat.c index ad99a1a51..ddfafa6ff 100644 --- a/ir/stat/firmstat.c +++ b/ir/stat/firmstat.c @@ -20,7 +20,6 @@ # include "irgraph_t.h" # include "pset.h" # include "irprog.h" -# include "firmstat.h" #include #include @@ -33,6 +32,8 @@ #ifdef FIRM_STATISTICS +#include "firmstat.h" + /* * 64 bit should be enough for now */ @@ -495,6 +496,10 @@ void stat_finish(void) #else +/* need this for prototypes */ +#define FIRM_STATISTICS +#include "firmstat.h" + void stat_init(void) {} void stat_finish(void) {} -- 2.20.1