Minor Solaris fixes. (nw)

This commit is contained in:
couriersud 2015-01-25 22:58:54 +01:00
parent dd7b5a953e
commit c3aa0eedbf
4 changed files with 13 additions and 1 deletions

View File

@ -32,6 +32,11 @@ class m68000_base_device;
#include <limits.h> #include <limits.h>
#ifdef SDLMAME_SOLARIS
#undef REG_SP
#undef REG_PC
#undef REG_FP
#endif
/* ======================================================================== */ /* ======================================================================== */
/* ==================== ARCHITECTURE-DEPENDANT DEFINES ==================== */ /* ==================== ARCHITECTURE-DEPENDANT DEFINES ==================== */

View File

@ -130,6 +130,10 @@ lua_engine::hook::hook()
cb = -1; cb = -1;
} }
#ifdef SDLMAME_SOLARIS
#undef _L
#endif
void lua_engine::hook::set(lua_State *_L, int idx) void lua_engine::hook::set(lua_State *_L, int idx)
{ {
if (L) if (L)

View File

@ -199,6 +199,10 @@ private:
// pnamedlist_t: a simple list // pnamedlist_t: a simple list
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
#ifdef SDLMAME_SOLARIS
#undef _C
#endif
template <class _C> template <class _C>
class pnamedlist_t : public plinearlist_t<_C> class pnamedlist_t : public plinearlist_t<_C>
{ {

View File

@ -33,7 +33,6 @@
//#undef _XPG6 //#undef _XPG6
//#undef _XPG5 //#undef _XPG5
//#undef _XPG4_2 //#undef _XPG4_2
//#define _XOPEN_SOURCE //#define _XOPEN_SOURCE
//#define _XOPEN_VERSION 4 //#define _XOPEN_VERSION 4
#elif defined(__irix__) || defined(__sgi) #elif defined(__irix__) || defined(__sgi)