소스 검색

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

Core: Include `intrin.h` for MSVC
Thaddeus Crews 5 달 전
부모
커밋
c657d4768d
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
  */