[X86] Only define _XCR_XFEATURE_ENABLED_MASK in xsaveintrin.h when _MSC_VER is defined. Remove from intrin.h.

I think this was my intention when I added it xsaveintrin.h

llvm-svn: 351568
This commit is contained in:
Craig Topper 2019-01-18 17:51:51 +00:00
parent be7cbe3f70
commit d08d90ce51
2 changed files with 1 additions and 2 deletions

View 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__

View File

@ -28,7 +28,7 @@
#ifndef __XSAVEINTRIN_H
#define __XSAVEINTRIN_H
#ifndef _MSC_VER
#ifdef _MSC_VER
#define _XCR_XFEATURE_ENABLED_MASK 0
#endif