From e848f9cdf563feea55a0ad69dd4c28b45ce302c0 Mon Sep 17 00:00:00 2001 From: Melissa Goad Date: Fri, 3 Apr 2020 10:48:56 -0500 Subject: [PATCH] Some compile fixes for clang. Still doesn't compile, but still :P --- src/cpu_common/386_common.h | 2 ++ src/cpu_new/codegen.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/cpu_common/386_common.h b/src/cpu_common/386_common.h index c57241e2d..294c82b98 100644 --- a/src/cpu_common/386_common.h +++ b/src/cpu_common/386_common.h @@ -19,6 +19,8 @@ #ifndef _386_COMMON_H_ #define _386_COMMON_H_ +#include + #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 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)))) diff --git a/src/cpu_new/codegen.h b/src/cpu_new/codegen.h index c07ca89c3..a3e8e7b5e 100644 --- a/src/cpu_new/codegen.h +++ b/src/cpu_new/codegen.h @@ -2,6 +2,7 @@ #define _CODEGEN_H_ #include <86box/mem.h> +#include #include "../cpu_common/x86_ops.h" /*Handling self-modifying code (of which there is a lot on x86) :