Skip to content

Commit

Permalink
[PS4] Predefine the __SCE__ macro for the x86_64-scei-ps4 triple
Browse files Browse the repository at this point in the history
  • Loading branch information
Warren Ristow committed Dec 12, 2019
1 parent b2b5cac commit bcae3a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions clang/lib/Basic/Targets/OSTargets.h
Expand Up @@ -538,6 +538,7 @@ class LLVM_LIBRARY_VISIBILITY PS4OSTargetInfo : public OSTargetInfo<Target> {
Builder.defineMacro("__KPRINTF_ATTRIBUTE__");
DefineStd(Builder, "unix", Opts);
Builder.defineMacro("__ELF__");
Builder.defineMacro("__SCE__");
Builder.defineMacro("__ORBIS__");
}

Expand Down
1 change: 1 addition & 0 deletions clang/test/Preprocessor/init.c
Expand Up @@ -9599,6 +9599,7 @@
// PS4:#define __PTRDIFF_TYPE__ long int
// PS4:#define __PTRDIFF_WIDTH__ 64
// PS4:#define __REGISTER_PREFIX__
// PS4:#define __SCE__ 1
// PS4:#define __SCHAR_MAX__ 127
// PS4:#define __SHRT_MAX__ 32767
// PS4:#define __SIG_ATOMIC_MAX__ 2147483647
Expand Down

0 comments on commit bcae3a7

Please sign in to comment.