diff options
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r-- | src/lj_arch.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h index bfcf3659..acdfe18b 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 |