Skip to content

Commit 0461304

Browse files
committed
Add header guards for header files that should not be included on the PS4 platform.
Reviewers: craig.topper Reviewed By: craig.topper Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D79194
1 parent cc25963 commit 0461304

File tree

4 files changed

+154
-90
lines changed

4 files changed

+154
-90
lines changed

clang/lib/Headers/bmiintrin.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ _mm_tzcnt_64(unsigned long long __X)
111111

112112
#undef __RELAXED_FN_ATTRS
113113

114-
#if !defined(_MSC_VER) || __has_feature(modules) || defined(__BMI__)
114+
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
115+
defined(__BMI__)
115116

116117
/* Define the default attributes for the functions in this file. */
117118
#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("bmi")))
@@ -420,6 +421,7 @@ __blsr_u64(unsigned long long __X)
420421

421422
#undef __DEFAULT_FN_ATTRS
422423

423-
#endif /* !defined(_MSC_VER) || __has_feature(modules) || defined(__BMI__) */
424+
#endif /* !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) \
425+
|| defined(__BMI__) */
424426

425427
#endif /* __BMIINTRIN_H */

0 commit comments

Comments
 (0)