From b2448ea002da9cf26ff44c034230c1c12fb25144 Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Mon, 27 Jan 2025 00:25:57 +0100 Subject: [PATCH] Fix upcoming not working on no cash (#6121) --- include/gba/defines.h | 1 + src/agb_flash_1m.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/gba/defines.h b/include/gba/defines.h index 0bf7110810..2a68042421 100644 --- a/include/gba/defines.h +++ b/include/gba/defines.h @@ -12,6 +12,7 @@ #define EWRAM_INIT __attribute__((section(".ewram"))) #define COMMON_DATA __attribute__((section("common_data"))) #define UNUSED __attribute__((unused)) +#define USED __attribute__((used)) #define ARM_FUNC __attribute__((target("arm"))) diff --git a/src/agb_flash_1m.c b/src/agb_flash_1m.c index 6fc4f3d600..037f7a964d 100644 --- a/src/agb_flash_1m.c +++ b/src/agb_flash_1m.c @@ -1,7 +1,7 @@ #include "gba/gba.h" #include "gba/flash_internal.h" -static const char AgbLibFlashVersion[] = "FLASH1M_V103"; +USED static const char AgbLibFlashVersion[] = "FLASH1M_V103"; static const struct FlashSetupInfo * const sSetupInfos[] = {