Commit 61e8bb15 by Alexis Hetu Committed by Alexis Hétu

Fixing intrinsics for Windows clang

Windows clang requires that intrinsics be properly declared through intrin.h, otherwise, intrinsics were getting manually declared through a pragma instruction from winnt.h and clang returned an error. Change-Id: Iddfa4e3d6c76388e986dc445e40fd05359c2763c Reviewed-on: https://swiftshader-review.googlesource.com/7050Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 24f454e2
......@@ -19,6 +19,7 @@
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#include <intrin.h>
#else
#include <sys/time.h>
#include <x86intrin.h>
......
......@@ -17,6 +17,7 @@
using namespace llvm;
#if defined(_MSC_VER)
#include <intrin.h>
#include <windows.h>
#undef MemoryFence
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment