[PATCH] D70348: Add header guards for header files that should not be included on the PS4 platform

Douglas Yung via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 15 15:42:35 PST 2019


dyung created this revision.
dyung added a reviewer: craig.topper.
dyung added a project: clang.

For the PS4 platform, we want to exclude certain headers from being included because we do not support the features they provide. So for the headers we want to exclude, this change adds a check whether __ORBIS__ is defined and excludes the header from being included when it is. Compilers targeting the PS4 define __ORBIS__.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70348

Files:
  clang/lib/Headers/immintrin.h
  clang/lib/Headers/x86intrin.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70348.229654.patch
Type: text/x-patch
Size: 11725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191115/9b8c98a9/attachment-0001.bin>


More information about the cfe-commits mailing list