From 38e9378f8f4bc465a09305e5021ead2eb89afb2b Mon Sep 17 00:00:00 2001 From: Aetias <144526980+AetiasHax@users.noreply.github.com> Date: Thu, 16 Apr 2026 23:10:14 +0200 Subject: Delink ActorShopItem.cpp (#147) * Make types compatible with dsd-ghidra typesync * Update actors.md * Update docs * Delink ActorShopItem.cpp --- libs/c/include/assert.h | 2 +- libs/c/include/stdarg.h | 6 +++++- libs/c/include/stddef.h | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'libs/c/include') diff --git a/libs/c/include/assert.h b/libs/c/include/assert.h index 22cdf7dc..6742f6bb 100644 --- a/libs/c/include/assert.h +++ b/libs/c/include/assert.h @@ -3,6 +3,6 @@ #define assert(condition) (void) ((condition) || __assert_failed(#condition, __FILE__, __FUNCTION__, __LINE__)); -void __assert_failed(char *condition, char *fileName, char *functionName, s32 lineNumber); +void __assert_failed(char *condition, char *fileName, char *functionName, int lineNumber); #endif diff --git a/libs/c/include/stdarg.h b/libs/c/include/stdarg.h index 4ace4037..795fbc8b 100644 --- a/libs/c/include/stdarg.h +++ b/libs/c/include/stdarg.h @@ -1,7 +1,9 @@ #ifndef _C_STDARG_H #define _C_STDARG_H +#ifdef __cplusplus extern "C" { +#endif typedef char *va_list; #define __std(ref) ::std::ref @@ -11,7 +13,9 @@ typedef char *va_list; #define va_start(ap, parm) ((ap) = __va_start(parm)) #define va_arg(ap, type) (*(type *) ((ap += __fourbytealign(sizeof(type))) - __fourbytealign(sizeof(type)))) #define va_end(ap) ((void) 0) -} +#ifdef __cplusplus +} // extern "C" +#endif #if defined(__cplusplus) namespace std { diff --git a/libs/c/include/stddef.h b/libs/c/include/stddef.h index eeed560c..50a16807 100644 --- a/libs/c/include/stddef.h +++ b/libs/c/include/stddef.h @@ -3,7 +3,11 @@ #define NULL 0 +#ifdef __MWERKS__ typedef unsigned long size_t; +#else +typedef unsigned int size_t; +#endif #define offsetof(type, member) ((size_t) &((type *) NULL)->member) -- cgit v1.2.3