From 690118f9ad03e2eb2cd62d56af41a5cb09021ed2 Mon Sep 17 00:00:00 2001 From: Archez Date: Wed, 13 Mar 2024 13:35:36 -0400 Subject: [PATCH] fix token pasting error on some compilers (#11) --- include/libultraship/libultra/gbi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libultraship/libultra/gbi.h b/include/libultraship/libultra/gbi.h index 077f1eb5c..b2da85426 100644 --- a/include/libultraship/libultra/gbi.h +++ b/include/libultraship/libultra/gbi.h @@ -2284,9 +2284,9 @@ typedef union { #define gsSPLoadUcode(uc_start, uc_dstart) gsSPLoadUcodeEx((uc_start), (uc_dstart), SP_UCODE_DATA_SIZE) #define gSPLoadUcodeL(pkt, ucode) \ - gSPLoadUcode((pkt), OS_K0_TO_PHYSICAL(&##ucode##TextStart), OS_K0_TO_PHYSICAL(&##ucode##DataStart)) + gSPLoadUcode((pkt), OS_K0_TO_PHYSICAL(&(ucode##TextStart)), OS_K0_TO_PHYSICAL(&(ucode##DataStart))) #define gsSPLoadUcodeL(ucode) \ - gsSPLoadUcode(OS_K0_TO_PHYSICAL(&##ucode##TextStart), OS_K0_TO_PHYSICAL(&##ucode##DataStart)) + gsSPLoadUcode(OS_K0_TO_PHYSICAL(&(ucode##TextStart)), OS_K0_TO_PHYSICAL(&(ucode##DataStart))) #endif #ifdef F3DEX_GBI_2