summaryrefslogtreecommitdiff
path: root/libs/c
diff options
context:
space:
mode:
authorAetias <144526980+AetiasHax@users.noreply.github.com>2026-04-16 23:10:14 +0200
committerGitHub <noreply@github.com>2026-04-16 23:10:14 +0200
commit38e9378f8f4bc465a09305e5021ead2eb89afb2b (patch)
treecb0c3cad894ce4d2fd74d111c090f8ca9698bb99 /libs/c
parent81f4540e6c2e4b80709f6837298b27929e6a4061 (diff)
Delink ActorShopItem.cpp (#147)
* Make types compatible with dsd-ghidra typesync * Update actors.md * Update docs * Delink ActorShopItem.cpp
Diffstat (limited to 'libs/c')
-rw-r--r--libs/c/include/assert.h2
-rw-r--r--libs/c/include/stdarg.h6
-rw-r--r--libs/c/include/stddef.h4
3 files changed, 10 insertions, 2 deletions
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)