be_lower_for_target is now a simple function in the public API
[libfirm] / ir / stat / statev.c
index 44bfa27..3d61fac 100644 (file)
@@ -39,6 +39,8 @@
 
 #include "config.h"
 
+#if defined(FIRM_STATISTICS) && !defined(DISABLE_STATEV)
+
 #ifdef HAVE_REGEX_H
 #define FIRM_HAVE_REGEX
 #endif
@@ -54,7 +56,7 @@
 #include <zlib.h>
 
 #define mfprintf   gzprintf
-static gzFile*     stat_ev_file  = NULL;
+static gzFile      stat_ev_file  = NULL;
 
 #else
 
@@ -120,10 +122,10 @@ void stat_ev_begin(const char *prefix, const char *filt)
 
 #ifdef FIRM_HAVE_LIBZ
        snprintf(buf, sizeof(buf), "%s.ev.gz", prefix);
-       stat_ev_file    = gzopen(buf, "wt9");
+       stat_ev_file = gzopen(buf, "wt9");
 #else
        snprintf(buf, sizeof(buf), "%s.ev", prefix);
-       stat_ev_file    = fopen(buf, "wt");
+       stat_ev_file = fopen(buf, "wt");
 #endif
 
        if (filt && filt[0] != '\0') {
@@ -150,3 +152,5 @@ void stat_ev_end(void)
 #endif
        }
 }
+
+#endif