diff --git a/port/win/env_win.cc b/port/win/env_win.cc index 01766c4d2..cc337c1f8 100644 --- a/port/win/env_win.cc +++ b/port/win/env_win.cc @@ -9,8 +9,6 @@ #if defined(OS_WIN) -#include "port/win/env_win.h" - #include // _rmdir, _mkdir, _getcwd #include #include // _access @@ -29,6 +27,7 @@ #include "monitoring/thread_status_util.h" #include "port/port.h" #include "port/port_dirent.h" +#include "port/win/env_win.h" #include "port/win/io_win.h" #include "port/win/win_logger.h" #include "port/win/win_thread.h" @@ -89,9 +88,8 @@ WinClock::WinClock() HMODULE module = GetModuleHandle("kernel32.dll"); if (module != NULL) { - GetSystemTimePreciseAsFileTime_ = - (FnGetSystemTimePreciseAsFileTime)GetProcAddress( - module, "GetSystemTimePreciseAsFileTime"); + GetSystemTimePreciseAsFileTime_ = (FnGetSystemTimePreciseAsFileTime)( + void*)GetProcAddress(module, "GetSystemTimePreciseAsFileTime"); } }