Fixed compiling without statistics
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 27 May 2004 07:23:22 +0000 (07:23 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 27 May 2004 07:23:22 +0000 (07:23 +0000)
[r2955]

ir/stat/firmstat.c

index ad99a1a..ddfafa6 100644 (file)
@@ -20,7 +20,6 @@
 # include "irgraph_t.h"
 # include "pset.h"
 # include "irprog.h"
-# include "firmstat.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -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) {}