Previous 199869 Revisions Next

r36836 Tuesday 31st March, 2015 at 16:03:17 UTC by Vasantha Crabb
Small cleanup to how macros are defined for SDL OSD
[scripts/src/osd]sdl_cfg.lua
[src/osd/sdl]sdlmain.c sdlprefix.h

trunk/scripts/src/osd/sdl_cfg.lua
r245347r245348
111111
112112if _OPTIONS["targetos"]=="windows" then
113113   defines {
114      "SDLMAME_WIN32",
115114      "UNICODE",
116115      "_UNICODE",
117116      "USE_QTDEBUG=" .. USE_QT,
r245347r245348
147146      "SDLMAME_NET_PCAP",
148147   }
149148elseif _OPTIONS["targetos"]=="freebsd" then
150   defines {
151      "NO_AFFINITY_NP",
152   }
153149   buildoptions {
154150      -- /usr/local/include is not considered a system include director on FreeBSD.  GL.h resides there and throws warnings
155151      "-isystem /usr/local/include",
156152   }
157elseif _OPTIONS["targetos"]=="solaris" then
158   defines {
159      "NO_AFFINITY_NP",
160   }
161153elseif _OPTIONS["targetos"]=="os2" then
162   defines {
163      "SDLMAME_OS2",
164   }
165154   buildoptions {
166155      string.gsub(os.outputof(sdlconfigcmd() .. " --cflags"), '[\r\n]+', ' '),
167156   }
trunk/src/osd/sdl/sdlmain.c
r245347r245348
400400   MACRO_VERBOSE(NO_DEBUGBER);
401401   MACRO_VERBOSE(BIGENDIAN);
402402   MACRO_VERBOSE(CPP_COMPILE);
403   MACRO_VERBOSE(DISTRO);
404403   MACRO_VERBOSE(SYNC_IMPLEMENTATION);
405404   osd_printf_verbose("\n");
406405   osd_printf_verbose("SDL/OpenGL defines: ");
trunk/src/osd/sdl/sdlprefix.h
r245347r245348
1414//============================================================
1515
1616/* Only problems ... */
17#ifdef SDLMAME_WIN32
17#if defined(_WIN32)
18#define SDLMAME_WIN32
1819#define _SDL_main_h
1920#endif
2021
r245347r245348
2728
2829#if defined(__sun__) && defined(__svr4__)
2930#define SDLMAME_SOLARIS 1
31#define NO_AFFINITY_NP 1
3032//#undef _XOPEN_SOURCE
3133//#undef _XOPEN_VERSION
3234//#undef _XOPEN_SOURCE_EXTENDED
r245347r245348
4547
4648#elif defined(__FreeBSD__)
4749#define SDLMAME_FREEBSD 1
50#define NO_AFFINITY_NP 1
4851#elif defined(__DragonFly__)
4952#define SDLMAME_DRAGONFLY 1
5053#elif defined(__OpenBSD__)
r245347r245348
5760#define SDLMAME_BSD 1
5861#endif
5962
63#if defined(__OS2__)
64#define SDLMAME_OS2 1
65#endif
66
6067#if defined(__HAIKU__)
6168#define SDLMAME_HAIKU 1
6269#define SDLMAME_NO64BITIO 1


Previous 199869 Revisions Next


© 1997-2024 The MAME Team