trunk/scripts/src/osd/sdl_cfg.lua
| r245347 | r245348 | |
| 111 | 111 | |
| 112 | 112 | if _OPTIONS["targetos"]=="windows" then |
| 113 | 113 | defines { |
| 114 | | "SDLMAME_WIN32", |
| 115 | 114 | "UNICODE", |
| 116 | 115 | "_UNICODE", |
| 117 | 116 | "USE_QTDEBUG=" .. USE_QT, |
| r245347 | r245348 | |
| 147 | 146 | "SDLMAME_NET_PCAP", |
| 148 | 147 | } |
| 149 | 148 | elseif _OPTIONS["targetos"]=="freebsd" then |
| 150 | | defines { |
| 151 | | "NO_AFFINITY_NP", |
| 152 | | } |
| 153 | 149 | buildoptions { |
| 154 | 150 | -- /usr/local/include is not considered a system include director on FreeBSD. GL.h resides there and throws warnings |
| 155 | 151 | "-isystem /usr/local/include", |
| 156 | 152 | } |
| 157 | | elseif _OPTIONS["targetos"]=="solaris" then |
| 158 | | defines { |
| 159 | | "NO_AFFINITY_NP", |
| 160 | | } |
| 161 | 153 | elseif _OPTIONS["targetos"]=="os2" then |
| 162 | | defines { |
| 163 | | "SDLMAME_OS2", |
| 164 | | } |
| 165 | 154 | buildoptions { |
| 166 | 155 | string.gsub(os.outputof(sdlconfigcmd() .. " --cflags"), '[\r\n]+', ' '), |
| 167 | 156 | } |
trunk/src/osd/sdl/sdlprefix.h
| r245347 | r245348 | |
| 14 | 14 | //============================================================ |
| 15 | 15 | |
| 16 | 16 | /* Only problems ... */ |
| 17 | | #ifdef SDLMAME_WIN32 |
| 17 | #if defined(_WIN32) |
| 18 | #define SDLMAME_WIN32 |
| 18 | 19 | #define _SDL_main_h |
| 19 | 20 | #endif |
| 20 | 21 | |
| r245347 | r245348 | |
| 27 | 28 | |
| 28 | 29 | #if defined(__sun__) && defined(__svr4__) |
| 29 | 30 | #define SDLMAME_SOLARIS 1 |
| 31 | #define NO_AFFINITY_NP 1 |
| 30 | 32 | //#undef _XOPEN_SOURCE |
| 31 | 33 | //#undef _XOPEN_VERSION |
| 32 | 34 | //#undef _XOPEN_SOURCE_EXTENDED |
| r245347 | r245348 | |
| 45 | 47 | |
| 46 | 48 | #elif defined(__FreeBSD__) |
| 47 | 49 | #define SDLMAME_FREEBSD 1 |
| 50 | #define NO_AFFINITY_NP 1 |
| 48 | 51 | #elif defined(__DragonFly__) |
| 49 | 52 | #define SDLMAME_DRAGONFLY 1 |
| 50 | 53 | #elif defined(__OpenBSD__) |
| r245347 | r245348 | |
| 57 | 60 | #define SDLMAME_BSD 1 |
| 58 | 61 | #endif |
| 59 | 62 | |
| 63 | #if defined(__OS2__) |
| 64 | #define SDLMAME_OS2 1 |
| 65 | #endif |
| 66 | |
| 60 | 67 | #if defined(__HAIKU__) |
| 61 | 68 | #define SDLMAME_HAIKU 1 |
| 62 | 69 | #define SDLMAME_NO64BITIO 1 |