| Previous | 199869 Revisions | Next |
| r36824 Tuesday 31st March, 2015 at 09:09:10 UTC by Miodrag Milanović |
|---|
| Remove need for winprefix.h and moved alloca define to osdcomm.h (nw) |
| [scripts/src/osd] | windows_cfg.lua |
| [src/osd] | osdcomm.h |
| [src/osd/sdl] | sdlprefix.h |
| [src/osd/windows] |
| r245335 | r245336 | |
|---|---|---|
| 1 | forcedincludes { | |
| 2 | MAME_DIR .. "src/osd/windows/winprefix.h" | |
| 3 | } | |
| 4 | ||
| 5 | 1 | defines { |
| 6 | 2 | "UNICODE", |
| 7 | 3 | "_UNICODE", |
| r245335 | r245336 | |
| 13 | 9 | "DIRECTINPUT_VERSION=0x0800", |
| 14 | 10 | "SDLMAME_NET_PCAP", |
| 15 | 11 | "main=utf8_main", |
| 12 | "_WIN32_WINNT=0x0501", | |
| 16 | 13 | } |
| r245335 | r245336 | |
|---|---|---|
| 242 | 242 | #endif |
| 243 | 243 | #endif |
| 244 | 244 | |
| 245 | #ifdef __GNUC__ | |
| 246 | #ifndef alloca | |
| 247 | #define alloca __builtin_alloca | |
| 248 | #endif | |
| 249 | #endif | |
| 250 | ||
| 245 | 251 | #endif /* __OSDCOMM_H__ */ |
| r245335 | r245336 | |
|---|---|---|
| 77 | 77 | |
| 78 | 78 | #endif /* SDLMAME_UNIX */ |
| 79 | 79 | |
| 80 | #ifdef __GNUC__ | |
| 81 | #define alloca __builtin_alloca | |
| 82 | #endif |
| r245335 | r245336 | |
|---|---|---|
| 1 | // license:BSD-3-Clause | |
| 2 | // copyright-holders:Aaron Giles | |
| 3 | //============================================================ | |
| 4 | // | |
| 5 | // winprefix.h - Win32 prefix file, included by ALL files | |
| 6 | // | |
| 7 | //============================================================ | |
| 8 | ||
| 9 | #ifndef _WIN32_WINNT | |
| 10 | #define _WIN32_WINNT 0x0501 // Windows XP | |
| 11 | #endif | |
| 12 | ||
| 13 | #ifdef __GNUC__ | |
| 14 | #ifndef alloca | |
| 15 | #define alloca __builtin_alloca | |
| 16 | #endif | |
| 17 | #define min(x,y) fmin(x,y) | |
| 18 | #define max(x,y) fmax(x,y) | |
| 19 | #endif |
| https://github.com/mamedev/mame/commit/49545f9e843d9336cb8241380fbf4194eae2767e |
| Previous | 199869 Revisions | Next |