summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--girepository/cmph/cmph_time.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/girepository/cmph/cmph_time.h b/girepository/cmph/cmph_time.h
index d8018090..c03558fb 100644
--- a/girepository/cmph/cmph_time.h
+++ b/girepository/cmph/cmph_time.h
@@ -6,12 +6,10 @@
#undef ELAPSED_TIME_IN_uSECONDS
#endif
-#ifdef WIN32
-// include headers to use gettimeofday
-#else
- #ifdef __GNUC__
+#ifdef __GNUC__
#include <sys/time.h>
- #include <sys/resource.h>
+ #ifndef WIN32
+ #include <sys/resource.h>
#endif
#endif