__cpuid() requires <intrin.h> to be included
authorannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Dec 2016 11:24:31 +0000 (11:24 +0000)
committerannulen@yandex.ru <annulen@yandex.ru@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Dec 2016 11:24:31 +0000 (11:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=166051

Reviewed by Yusuke Suzuki.

* assembler/MacroAssemblerX86Common.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210019 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h

index 6da83e1..facf91c 100644 (file)
@@ -1,3 +1,12 @@
+2016-12-20  Konstantin Tokarev  <annulen@yandex.ru>
+
+        __cpuid() requires <intrin.h> to be included
+        https://bugs.webkit.org/show_bug.cgi?id=166051
+
+        Reviewed by Yusuke Suzuki.
+
+        * assembler/MacroAssemblerX86Common.h:
+
 2016-12-19  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         [ES6] Enable ES6 Modules
index 3834214..7d8493c 100644 (file)
 #include "AbstractMacroAssembler.h"
 #include <wtf/Optional.h>
 
+#if COMPILER(MSVC)
+#include <intrin.h>
+#endif
+
 namespace JSC {
 
 class MacroAssemblerX86Common : public AbstractMacroAssembler<X86Assembler, MacroAssemblerX86Common> {