aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CycleClock
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-12-31 09:36:04 -0500
committerErik Schnetter <schnetter@gmail.com>2012-12-31 09:36:04 -0500
commit21fad153f922a757707104fafeb91cdb9d847619 (patch)
tree8e807ba80acf3d6cedd0cc9680596a326537b43a /Carpet/CycleClock
parent79db9ee2af670c5fe440349ea7c21a26888686fb (diff)
CycleClock: Abort compile if architecture is not supported
Diffstat (limited to 'Carpet/CycleClock')
-rw-r--r--Carpet/CycleClock/src/cycleclock.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Carpet/CycleClock/src/cycleclock.h b/Carpet/CycleClock/src/cycleclock.h
index c985609f1..f2ab56343 100644
--- a/Carpet/CycleClock/src/cycleclock.h
+++ b/Carpet/CycleClock/src/cycleclock.h
@@ -22,8 +22,12 @@ extern "C" {
#include "cycle.h"
- double seconds_per_tick();
- void measure_tick();
+#ifndef HAVE_TICK_COUNTER
+# error "tick counter not available"
+#endif
+
+ double seconds_per_tick(void);
+ void measure_tick(void);
#ifdef __cplusplus
}