fix windows compiling
This commit is contained in:
parent
7c62880b00
commit
79e97e339e
|
@ -506,6 +506,7 @@ void GameInfo::closeROM()
|
|||
|
||||
u32 GameInfo::readROM(u32 pos)
|
||||
{
|
||||
//TODO - this should not be done here! it's a property of the slot-1 device, not the rom!
|
||||
if ((pos < 0x8000) && (pos >= 0x4000))
|
||||
return *(u32*)(secureArea + (pos - 0x4000));
|
||||
|
||||
|
|
|
@ -17,11 +17,13 @@
|
|||
*/
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#ifdef HAVE_JIT
|
||||
#if !defined(HOST_32) && !defined(HOST_64)
|
||||
#error "ERROR: JIT compiler - unsupported target platform"
|
||||
#endif
|
||||
#ifdef _WINDOWS
|
||||
|
||||
#ifdef HOST_WINDOWS
|
||||
// **** Windows port
|
||||
#else
|
||||
#include <sys/mman.h>
|
||||
|
@ -30,6 +32,7 @@
|
|||
#include <stddef.h>
|
||||
#define HAVE_STATIC_CODE_BUFFER
|
||||
#endif
|
||||
|
||||
#include "instructions.h"
|
||||
#include "instruction_attributes.h"
|
||||
#include "Disassembler.h"
|
||||
|
|
|
@ -21,10 +21,18 @@
|
|||
|
||||
//analyze microsoft compilers
|
||||
#ifdef _MSC_VER
|
||||
#define HOST_WINDOWS
|
||||
//todo - everyone will want to support this eventually, i suppose
|
||||
#include "config.h"
|
||||
#endif
|
||||
#define HOST_WINDOWS
|
||||
|
||||
#if defined(__x86_64__) || defined(__LP64) || defined(__IA64__) || defined(_M_X64) || defined(_WIN64)
|
||||
#define HOST_64
|
||||
#else
|
||||
#define HOST_32
|
||||
#endif
|
||||
|
||||
//todo - everyone will want to support this eventually, i suppose
|
||||
#include "config.h"
|
||||
|
||||
#endif //_MSC_VER
|
||||
|
||||
//enforce a constraint: gdb stub requires developer
|
||||
#if defined(GDB_STUB) && !defined(DEVELOPER)
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
along with the this software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
#ifdef HOST_WINDOWS
|
||||
|
|
Loading…
Reference in New Issue