Start removing the use of OSD macros outside OSD since core objects are shared between OSD builds

This commit is contained in:
Vas Crabb 2015-04-01 13:44:07 +11:00
parent 02c9e215f9
commit 8a4145b48c
6 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,7 @@ class m68000_base_device;
#include <limits.h>
#ifdef SDLMAME_SOLARIS
#ifdef defined(__sun__) && defined(__svr4__)
#undef REG_SP
#undef REG_PC
#undef REG_FP

View File

@ -23,7 +23,7 @@
#include <stdarg.h>
// some cleanups for Solaris for things defined in stdlib.h
#ifdef SDLMAME_SOLARIS
#ifdef defined(__sun__) && defined(__svr4__)
#undef si_status
#undef WWORD
#endif
@ -373,7 +373,7 @@ ATTR_NORETURN void fatalerror_exitcode(running_machine &machine, int exitcode, c
//**************************************************************************
// population count
#ifndef SDLMAME_NETBSD
#ifndef defined(__NetBSD__)
inline int popcount(UINT32 val)
{
int count;

View File

@ -130,7 +130,7 @@ lua_engine::hook::hook()
cb = -1;
}
#if defined(SDLMAME_SOLARIS) || defined(__ANDROID__)
#if (defined(__sun__) && defined(__svr4__)) || defined(__ANDROID__)
#undef _L
#endif

View File

@ -385,7 +385,7 @@ int running_machine::run(bool firstrun)
{
g_profiler.start(PROFILER_EXTRA);
#ifdef SDLMAME_EMSCRIPTEN
#if defined(EMSCRIPTEN)
//break out to our async javascript loop and halt
js_set_main_loop(this);
#endif
@ -1344,7 +1344,7 @@ void system_time::full_time::set(struct tm &t)
// JAVASCRIPT PORT-SPECIFIC
//**************************************************************************
#ifdef SDLMAME_EMSCRIPTEN
#if defined(EMSCRIPTEN)
static running_machine * jsmess_machine;
@ -1377,4 +1377,4 @@ sound_manager * js_get_sound() {
return &(jsmess_machine->sound());
}
#endif /* SDLMAME_EMSCRIPTEN */
#endif /* defined(EMSCRIPTEN) */

View File

@ -199,7 +199,7 @@ private:
// pnamedlist_t: a simple list
// ----------------------------------------------------------------------------------------
#if defined(SDLMAME_SOLARIS) || defined(__ANDROID__)
#if defined(defined(__sun__) && defined(__svr4__)) || defined(__ANDROID__)
#undef _C
#endif

View File

@ -319,7 +319,7 @@ void ui_manager::display_startup_screens(bool first_time, bool show_disclaimer)
if (!first_time || (str > 0 && str < 60*5) || &machine().system() == &GAME_NAME(___empty) || (machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
show_gameinfo = show_warnings = show_disclaimer = show_mandatory_fileman = FALSE;
#ifdef SDLMAME_EMSCRIPTEN
#if defined(EMSCRIPTEN)
// also disable for the JavaScript port since the startup screens do not run asynchronously
show_gameinfo = show_warnings = show_disclaimer = FALSE;
#endif