From f065b060bda86df8f14ae67793baa9115a8f5be8 Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Fri, 23 Jan 2015 16:29:12 +0300 Subject: [PATCH] Fixing examples on Windows to compile correctly. --- examples/timing.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/timing.h b/examples/timing.h index 5254a787..07b934ff 100644 --- a/examples/timing.h +++ b/examples/timing.h @@ -58,7 +58,8 @@ __inline__ uint64_t rdtsc() { #ifdef WIN32 #include -double rtc(); +// This is just a stub, it's not used on Windows. +double rtc() { return 0.0; }; #define rdtsc __rdtsc #else // WIN32 __inline__ uint64_t rdtsc() {