summaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2014-02-26 15:56:07 +0100
committerMike Pall <mike>2014-02-26 15:56:07 +0100
commit6a47e123a4339e33a7942525a19348cd2068b057 (patch)
treebd361431f9a2f6ba821ff6cfb3a1d20034fc6063 /src/lj_arch.h
parent998651fcdafc8b6f3d922e1e60864fec83409118 (diff)
downloadluajit-6a47e123a4339e33a7942525a19348cd2068b057.tar.gz
luajit-6a47e123a4339e33a7942525a19348cd2068b057.tar.bz2
luajit-6a47e123a4339e33a7942525a19348cd2068b057.zip
Add PS4 port.
Thanks to Eddie Edwards.
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 8b276e8f..0196eedc 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -66,8 +66,8 @@
66#define LUAJIT_OS LUAJIT_OS_LINUX 66#define LUAJIT_OS LUAJIT_OS_LINUX
67#elif defined(__MACH__) && defined(__APPLE__) 67#elif defined(__MACH__) && defined(__APPLE__)
68#define LUAJIT_OS LUAJIT_OS_OSX 68#define LUAJIT_OS LUAJIT_OS_OSX
69#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \ 69#elif (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
70 defined(__NetBSD__) || defined(__OpenBSD__) 70 defined(__NetBSD__) || defined(__OpenBSD__)) && !defined(__ORBIS__)
71#define LUAJIT_OS LUAJIT_OS_BSD 71#define LUAJIT_OS LUAJIT_OS_BSD
72#elif (defined(__sun__) && defined(__svr4__)) || defined(__CYGWIN__) 72#elif (defined(__sun__) && defined(__svr4__)) || defined(__CYGWIN__)
73#define LUAJIT_OS LUAJIT_OS_POSIX 73#define LUAJIT_OS LUAJIT_OS_POSIX
@@ -104,6 +104,13 @@
104#define LJ_TARGET_CONSOLE 1 104#define LJ_TARGET_CONSOLE 1
105#endif 105#endif
106 106
107#ifdef __ORBIS__
108#define LJ_TARGET_PS4 1
109#define LJ_TARGET_CONSOLE 1
110#undef NULL
111#define NULL ((void*)0)
112#endif
113
107#if _XBOX_VER >= 200 114#if _XBOX_VER >= 200
108#define LJ_TARGET_XBOX360 1 115#define LJ_TARGET_XBOX360 1
109#define LJ_TARGET_CONSOLE 1 116#define LJ_TARGET_CONSOLE 1