Commit 12b479a4 authored by Kenton Varda's avatar Kenton Varda

Fix MSVC: Doesn't have intrin0.h until 2017.

Also fixed a similar _MSC_VER guard that I realized was catching MinGW by accident.
parent 49efe2d7
...@@ -298,7 +298,7 @@ protected: ...@@ -298,7 +298,7 @@ protected:
} }
}; };
#if _MSC_VER < 1910 #if _MSC_VER && _MSC_VER < 1910
// TODO(msvc): MSVC 2015 can't initialize a constexpr's vtable correctly. // TODO(msvc): MSVC 2015 can't initialize a constexpr's vtable correctly.
const MmapDisposer mmapDisposer = MmapDisposer(); const MmapDisposer mmapDisposer = MmapDisposer();
#else #else
......
...@@ -29,8 +29,12 @@ ...@@ -29,8 +29,12 @@
#endif #endif
#if _MSC_VER #if _MSC_VER
#if _MSC_VER < 1910
#include <intrin.h>
#else
#include <intrin0.h> #include <intrin0.h>
#endif #endif
#endif
namespace kj { namespace kj {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment