diff --git a/libraries/shared/src/PortableHighResolutionClock.cpp b/libraries/shared/src/PortableHighResolutionClock.cpp index 7cfb4c61b2..6e096a7ce1 100644 --- a/libraries/shared/src/PortableHighResolutionClock.cpp +++ b/libraries/shared/src/PortableHighResolutionClock.cpp @@ -18,7 +18,7 @@ namespace { LARGE_INTEGER frequency; QueryPerformanceFrequency(&frequency); return frequency.QuadPart; - } + }(); } win_high_resolution_clock::time_point win_high_resolution_clock::now() { diff --git a/libraries/shared/src/PortableHighResolutionClock.h b/libraries/shared/src/PortableHighResolutionClock.h index e12ef818b7..ec1b068e66 100644 --- a/libraries/shared/src/PortableHighResolutionClock.h +++ b/libraries/shared/src/PortableHighResolutionClock.h @@ -23,6 +23,7 @@ #if defined(_MSC_VER) && _MSC_VER < 1900 +#define WIN32_LEAN_AND_MEAN #include // The following struct is not compliant with the HF coding standard, but uses underscores to match the classes