Removed all uses of setjmp.h in MAME. The only place where

it is still referenced is cpu/powerpc/ppc.c. I couldn't find 
any case in which this file would be compiled using the 
current build system. Nonetheless documented use using 
PPC_H_INCLUDED_FROM_PPC_C define. [Couriersud]
This commit is contained in:
couriersud 2015-05-17 13:20:12 +02:00
parent 9aaa9fbebc
commit ebc96303ee
3 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,9 @@
#include <setjmp.h>
#include "emu.h"
#include "debugger.h"
/* avoid including setjmp.h and defining jump buffer if not included from here */
#define PPC_H_INCLUDED_FROM_PPC_C
#include "ppc.h"
// PLL Configuration based on the table in MPC603EUM page 7-31

View File

@ -14,7 +14,9 @@
#ifndef __PPC_H__
#define __PPC_H__
#ifdef PPC_H_INCLUDED_FROM_PPC_C
#include <setjmp.h>
#endif
#include "cpu/vtlb.h"
#include "cpu/drcfe.h"
#include "cpu/drcuml.h"
@ -512,7 +514,9 @@ protected:
write32_delegate m_ext_dma_write_cb[4];
/* PowerPC function pointers for memory accesses/exceptions */
#ifdef PPC_H_INCLUDED_FROM_PPC_C
jmp_buf m_exception_jmpbuf;
#endif
UINT8 (*m_ppcread8)(address_space &space, offs_t address);
UINT16 (*m_ppcread16)(address_space &space, offs_t address);
UINT32 (*m_ppcread32)(address_space &space, offs_t address);

View File

@ -37,7 +37,6 @@
#include "emu.h"
#include "drcuml.h"
#include "drcumlsh.h"
#include <setjmp.h>
using namespace uml;