summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/perfcounter/perf.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/perfcounter/perf.h b/examples/perfcounter/perf.h
index 7f06b05027..b2968a08cf 100644
--- a/examples/perfcounter/perf.h
+++ b/examples/perfcounter/perf.h
@@ -21,6 +21,21 @@
#ifndef __PERF_H__
#define __PERF_H__
+#define _PUBLIC_
+
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#endif
+
+#if !defined(HAVE_BOOL)
+#ifdef HAVE__Bool
+#define bool _Bool
+#else
+typedef int bool;
+#endif
+#endif
+
+
#include <stdlib.h>
#include <time.h>
#include <math.h>