fix other include issues

This commit is contained in:
Pawel Szot 2025-05-01 07:48:43 +02:00
parent 46a50bd04d
commit fc125d6c2a
7 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,9 @@
#pragma once
#ifndef GB_DISABLE_CHEATS
#include "defs.h"
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#define GB_CHEAT_ANY_BANK 0xFFFF

View File

@ -2,6 +2,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "defs.h"
typedef struct {
struct GB_color_s {

View File

@ -1,6 +1,7 @@
#pragma once
#include "defs.h"
#include <stdbool.h>
#include <stdint.h>
typedef enum {
GB_KEY_RIGHT,

View File

@ -1,6 +1,8 @@
#pragma once
#include "defs.h"
#include <stdint.h>
#include <stdbool.h>
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

View File

@ -3,6 +3,8 @@
#include <stdint.h>
#include <stdbool.h>
#include "defs.h"
#include "save_state.h"
#define GB_PRINTER_MAX_COMMAND_LENGTH 0x280
#define GB_PRINTER_DATA_SIZE 0x280

View File

@ -2,7 +2,10 @@
/* Macros to make the GB_gameboy_t struct more future compatible when state saving */
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "model.h"
#include "defs.h"
#define GB_PADDING(type, old_usage) type old_usage##__do_not_use

View File

@ -4,6 +4,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
typedef struct {
char *name;