Some compile fixes for clang. Still doesn't compile, but still :P

This commit is contained in:
Melissa Goad
2020-04-03 10:48:56 -05:00
parent 4f013c1da0
commit e848f9cdf5
2 changed files with 3 additions and 0 deletions

View File

@@ -19,6 +19,8 @@
#ifndef _386_COMMON_H_ #ifndef _386_COMMON_H_
#define _386_COMMON_H_ #define _386_COMMON_H_
#include <stddef.h>
#ifdef USE_NEW_DYNAREC #ifdef USE_NEW_DYNAREC
#define readmemb(s,a) ((readlookup2[(uint32_t)((s)+(a))>>12]==-1)?readmembl((s)+(a)): *(uint8_t *)(readlookup2[(uint32_t)((s)+(a))>>12] + (uint32_t)((s) + (a))) ) #define readmemb(s,a) ((readlookup2[(uint32_t)((s)+(a))>>12]==-1)?readmembl((s)+(a)): *(uint8_t *)(readlookup2[(uint32_t)((s)+(a))>>12] + (uint32_t)((s) + (a))) )
#define readmemw(s,a) ((readlookup2[(uint32_t)((s)+(a))>>12]==-1 || (((s)+(a)) & 1))?readmemwl((s)+(a)):*(uint16_t *)(readlookup2[(uint32_t)((s)+(a))>>12]+(uint32_t)((s)+(a)))) #define readmemw(s,a) ((readlookup2[(uint32_t)((s)+(a))>>12]==-1 || (((s)+(a)) & 1))?readmemwl((s)+(a)):*(uint16_t *)(readlookup2[(uint32_t)((s)+(a))>>12]+(uint32_t)((s)+(a))))

View File

@@ -2,6 +2,7 @@
#define _CODEGEN_H_ #define _CODEGEN_H_
#include <86box/mem.h> #include <86box/mem.h>
#include <stddef.h>
#include "../cpu_common/x86_ops.h" #include "../cpu_common/x86_ops.h"
/*Handling self-modifying code (of which there is a lot on x86) : /*Handling self-modifying code (of which there is a lot on x86) :