From fc125d6c2a3bdbc18c146035483e116c8e704b86 Mon Sep 17 00:00:00 2001 From: Pawel Szot Date: Thu, 1 May 2025 07:48:43 +0200 Subject: [PATCH] fix other include issues --- Core/cheats.h | 3 +++ Core/display.h | 1 + Core/joypad.h | 1 + Core/memory.h | 2 ++ Core/printer.h | 2 ++ Core/save_state.h | 3 +++ Core/symbol_hash.h | 1 + 7 files changed, 13 insertions(+) diff --git a/Core/cheats.h b/Core/cheats.h index 976f4c8..88fe562 100644 --- a/Core/cheats.h +++ b/Core/cheats.h @@ -1,6 +1,9 @@ #pragma once #ifndef GB_DISABLE_CHEATS #include "defs.h" +#include +#include +#include #define GB_CHEAT_ANY_BANK 0xFFFF diff --git a/Core/display.h b/Core/display.h index f014d9c..2903d45 100644 --- a/Core/display.h +++ b/Core/display.h @@ -2,6 +2,7 @@ #include #include +#include "defs.h" typedef struct { struct GB_color_s { diff --git a/Core/joypad.h b/Core/joypad.h index 160f5f8..dd6fc25 100644 --- a/Core/joypad.h +++ b/Core/joypad.h @@ -1,6 +1,7 @@ #pragma once #include "defs.h" #include +#include typedef enum { GB_KEY_RIGHT, diff --git a/Core/memory.h b/Core/memory.h index 0bd8a43..42a1d56 100644 --- a/Core/memory.h +++ b/Core/memory.h @@ -1,6 +1,8 @@ #pragma once #include "defs.h" #include +#include + typedef uint8_t (*GB_read_memory_callback_t)(GB_gameboy_t *gb, uint16_t addr, uint8_t data); typedef bool (*GB_write_memory_callback_t)(GB_gameboy_t *gb, uint16_t addr, uint8_t data); // Return false to prevent the write diff --git a/Core/printer.h b/Core/printer.h index 2a76f30..c7defb3 100644 --- a/Core/printer.h +++ b/Core/printer.h @@ -3,6 +3,8 @@ #include #include #include "defs.h" +#include "save_state.h" + #define GB_PRINTER_MAX_COMMAND_LENGTH 0x280 #define GB_PRINTER_DATA_SIZE 0x280 diff --git a/Core/save_state.h b/Core/save_state.h index 37d9e87..f5b5b94 100644 --- a/Core/save_state.h +++ b/Core/save_state.h @@ -2,7 +2,10 @@ /* Macros to make the GB_gameboy_t struct more future compatible when state saving */ #include +#include +#include #include "model.h" +#include "defs.h" #define GB_PADDING(type, old_usage) type old_usage##__do_not_use diff --git a/Core/symbol_hash.h b/Core/symbol_hash.h index bdc4a38..17eea3f 100644 --- a/Core/symbol_hash.h +++ b/Core/symbol_hash.h @@ -4,6 +4,7 @@ #include #include #include +#include typedef struct { char *name;