diff --git a/src/timers.cc b/src/timers.cc index c9d7e583da..2a3d379a93 100644 --- a/src/timers.cc +++ b/src/timers.cc @@ -19,12 +19,15 @@ #include #include #include -#else +#endif + +#if !defined(BENCHMARK_OS_WINDOWS) || defined(__GNUC__) // handles mingw #include #include #include #include // this header must be included before 'sys/sysctl.h' to avoid compilation error on FreeBSD #include +#endif #if defined BENCHMARK_OS_FREEBSD || defined BENCHMARK_OS_MACOSX #include #endif @@ -33,7 +36,6 @@ #include #include #endif -#endif #include #include