From: notaz Date: Tue, 15 Oct 2024 00:39:25 +0000 (+0300) Subject: 3ds: adjust for newer toolchain X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb079f6a3d7cb0b2d95a91cce4ebfdf5cf571a40;p=pcsx_rearmed.git 3ds: adjust for newer toolchain --- diff --git a/Makefile.libretro b/Makefile.libretro index 0c38aba9..76395207 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -338,7 +338,8 @@ else ifeq ($(platform), ctr) $(error "CTRULIB env var is not set") endif TARGET := $(TARGET_NAME)_libretro_ctr.a - CFLAGS += -DARM11 -D_3DS -DNO_DYLIB -DGPU_UNAI_USE_FLOATMATH -DGPU_UNAI_USE_FLOAT_DIV_MULTINV + CFLAGS += -DARM11 -D_3DS -D__3DS__ + CFLAGS += -DNO_DYLIB -DGPU_UNAI_USE_FLOATMATH -DGPU_UNAI_USE_FLOAT_DIV_MULTINV CFLAGS += -march=armv6k -mtune=mpcore -mfloat-abi=hard -marm -mfpu=vfp -mtp=soft CFLAGS += -Wall -mword-relocations CFLAGS += -fomit-frame-pointer diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index 887fe8a4..9ff295e0 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -71,8 +71,8 @@ static const u32 HSyncTotal[] = { 263, 314 }; #ifdef DRC_DISABLE Rcnt rcnts[ CounterQuantity ]; #endif -u32 hSyncCount = 0; -u32 frame_counter = 0; +unsigned int hSyncCount = 0; +unsigned int frame_counter = 0; static u32 hsync_steps = 0; u32 psxNextCounter = 0, psxNextsCounter = 0; diff --git a/libpcsxcore/psxcounters.h b/libpcsxcore/psxcounters.h index 77025a61..618d74de 100644 --- a/libpcsxcore/psxcounters.h +++ b/libpcsxcore/psxcounters.h @@ -31,7 +31,7 @@ extern "C" { extern u32 psxNextCounter, psxNextsCounter; -extern u32 hSyncCount, frame_counter; +extern unsigned int hSyncCount, frame_counter; typedef struct Rcnt {