Explorar o código

Core: Include `intrin.h` for MSVC

Thaddeus Crews hai 5 meses
pai
achega
8f16b86d7e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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
  */