]> granicus.if.org Git - clang/commitdiff
[X86] Only define _XCR_XFEATURE_ENABLED_MASK in xsaveintrin.h when _MSC_VER is define...
authorCraig Topper <craig.topper@intel.com>
Fri, 18 Jan 2019 17:51:51 +0000 (17:51 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 18 Jan 2019 17:51:51 +0000 (17:51 +0000)
I think this was my intention when I added it xsaveintrin.h

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351568 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/intrin.h
lib/Headers/xsaveintrin.h

index acc08abaf0345deaea9850df3c1e4fc0507bb069..aa27707ef53faf8cd0b7d65097bade88a0720981 100644 (file)
@@ -200,7 +200,6 @@ __attribute__((__deprecated__("use other intrinsics or C++11 atomics instead")))
 _WriteBarrier(void);
 unsigned __int32 xbegin(void);
 void _xend(void);
-#define _XCR_XFEATURE_ENABLED_MASK 0
 
 /* These additional intrinsics are turned on in x64/amd64/x86_64 mode. */
 #ifdef __x86_64__
index 788f9e000b52279252c90acc41a54a0a59643059..55a1eb9f59a968b0d0c2000e240445123b37fc7a 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef __XSAVEINTRIN_H
 #define __XSAVEINTRIN_H
 
-#ifndef _MSC_VER
+#ifdef _MSC_VER
 #define _XCR_XFEATURE_ENABLED_MASK 0
 #endif