浏览代码

Core: Include `intrin.h` for MSVC

Thaddeus Crews 5 月之前
父节点
当前提交
8f16b86d7e
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      core/templates/hashfuncs.h

+ 4 - 0
core/templates/hashfuncs.h

@@ -55,6 +55,10 @@
 #include "core/templates/rid.h"
 #include "core/typedefs.h"
 
+#ifdef _MSC_VER
+#include <intrin.h> // Needed for `__umulh` below.
+#endif
+
 /**
  * Hashing functions
  */