diff --git a/silk/debug.c b/silk/debug.c
index 71e69cc69fd3c02dba7f1389c7f1246ca2ec5cc5..4f02912b2f03cee0c60bf392bab2a345527f6a9a 100644
--- a/silk/debug.c
+++ b/silk/debug.c
@@ -37,14 +37,13 @@ POSSIBILITY OF SUCH DAMAGE.
 
 #if SILK_TIC_TOC
 
-#ifdef _WIN32
-
 #if (defined(_WIN32) || defined(_WINCE))
 #include <windows.h>    /* timer */
 #else   /* Linux or Mac*/
 #include <sys/time.h>
 #endif
 
+#ifdef _WIN32
 unsigned long silk_GetHighResolutionTime(void) /* O  time in usec*/
 {
     /* Returns a time counter in microsec   */