summaryrefslogtreecommitdiff
path: root/src/PowerPC_EABI_Support
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2024-10-17 23:58:38 +0200
committerGitHub <noreply@github.com>2024-10-17 17:58:38 -0400
commitb96e6ee19f4f8538e3162b16177a4d066eacdae5 (patch)
treee47be5e74d6dce873a74417a1a8583c858030899 /src/PowerPC_EABI_Support
parent22a5cadd578840f592b41a6d341e8cf7afb7ebbe (diff)
Meter madness (#64)
* Meter Madness Part 1 * progress * maybe * ::build meters too * vtables labeling, small order problems * Moar symbols * Renames * some dLytNote_c * Fixes * Checkpoint * ::remove funcs * Fix includes * Move code around * rm dead code * rm dead include * Draw functions * Update include/s/s_State.hpp * Update include/toBeSorted/scgame.h
Diffstat (limited to 'src/PowerPC_EABI_Support')
-rw-r--r--src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/stddef.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/stddef.h b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/stddef.h
index 09870064..121e4ac6 100644
--- a/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/stddef.h
+++ b/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/stddef.h
@@ -13,7 +13,11 @@ typedef unsigned long size_t;
typedef long ptrdiff_t;
#endif
+#ifdef __MWERKS__
#define offsetof(type, member) ((size_t) & (((type *)0)->member))
+#else
+#define offsetof(type, member) __builtin_offsetof(type, member)
+#endif
#ifndef NULL
#define NULL (0)