Browse Source

Merge pull request #104570 from Repiteo/core/intrin-fix

Core: Include `intrin.h` for MSVC
Thaddeus Crews 5 tháng trước cách đây
mục cha
commit
c657d4768d
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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
  */