aboutsummaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2022-04-17 23:41:39 +0200
committerMike Pall <mike>2022-04-17 23:41:39 +0200
commit34a62c7f738347e4981e7882bbf4f7a4f706dc5d (patch)
tree8528f19d8ffda9ccaddcae82f942538ffeb7f5b8 /src/lj_arch.h
parentddb955376457461bbcc62d4c7fee86669adad20c (diff)
downloadluajit-34a62c7f738347e4981e7882bbf4f7a4f706dc5d.tar.gz
luajit-34a62c7f738347e4981e7882bbf4f7a4f706dc5d.tar.bz2
luajit-34a62c7f738347e4981e7882bbf4f7a4f706dc5d.zip
Add PS5 port.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r--src/lj_arch.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index cc4eae72..1852c497 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -83,7 +83,7 @@
83#define LUAJIT_OS LUAJIT_OS_OSX 83#define LUAJIT_OS LUAJIT_OS_OSX
84#elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \ 84#elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
85 defined(__NetBSD__) || defined(__OpenBSD__) || \ 85 defined(__NetBSD__) || defined(__OpenBSD__) || \
86 defined(__DragonFly__)) && !defined(__ORBIS__) 86 defined(__DragonFly__)) && !defined(__ORBIS__) && !defined(__PROSPERO__)
87#define LUAJIT_OS LUAJIT_OS_BSD 87#define LUAJIT_OS LUAJIT_OS_BSD
88#elif (defined(__sun__) && defined(__svr4__)) 88#elif (defined(__sun__) && defined(__svr4__))
89#define LJ_TARGET_SOLARIS 1 89#define LJ_TARGET_SOLARIS 1
@@ -139,6 +139,13 @@
139#define NULL ((void*)0) 139#define NULL ((void*)0)
140#endif 140#endif
141 141
142#ifdef __PROSPERO__
143#define LJ_TARGET_PS5 1
144#define LJ_TARGET_CONSOLE 1
145#undef NULL
146#define NULL ((void*)0)
147#endif
148
142#ifdef __psp2__ 149#ifdef __psp2__
143#define LJ_TARGET_PSVITA 1 150#define LJ_TARGET_PSVITA 1
144#define LJ_TARGET_CONSOLE 1 151#define LJ_TARGET_CONSOLE 1
@@ -634,7 +641,7 @@ extern void *LJ_WIN_LOADLIBA(const char *path);
634#endif 641#endif
635#endif 642#endif
636 643
637#if defined(LUAJIT_NO_UNWIND) || __GNU_COMPACT_EH__ || defined(__symbian__) || LJ_TARGET_IOS || LJ_TARGET_PS3 || LJ_TARGET_PS4 644#if defined(LUAJIT_NO_UNWIND) || __GNU_COMPACT_EH__ || defined(__symbian__) || LJ_TARGET_IOS || LJ_TARGET_PS3 || LJ_TARGET_PS4 || LJ_TARGET_PS5
638#define LJ_NO_UNWIND 1 645#define LJ_NO_UNWIND 1
639#endif 646#endif
640 647