Include intrin.h in CpuId for the cpuid builtins
authorChristopher Dykes <cdykes@fb.com>
Thu, 11 Aug 2016 21:35:16 +0000 (14:35 -0700)
committerFacebook Github Bot 7 <facebook-github-bot-7-bot@fb.com>
Thu, 11 Aug 2016 21:39:07 +0000 (14:39 -0700)
Summary: Some shuffling and elmination of other includes exposed the fact that this was calling the cpuid builtins, but hadn't included the header they were defined in.

Reviewed By: yfeldblum

Differential Revision: D3704321

fbshipit-source-id: 332c2d22714abaa74090abe7e7a5b28aec6b905a

folly/CpuId.h

index fe3d58bb970fac74a1f218fcf11c3142a745cc6e..6957d934402f70c8bee93a10201c5594722c461b 100644 (file)
 #include <cstdint>
 #include <folly/Portability.h>
 
+#ifdef _MSC_VER
+#include <intrin.h>
+#endif
+
 namespace folly {
 
 /**