diff options
| author | SammygoodTunes <56520787+SammygoodTunes@users.noreply.github.com> | 2025-04-01 21:25:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-01 21:25:38 +0200 |
| commit | 3376d55c856262c43c731272a499bf41ba50feea (patch) | |
| tree | a113b273f81cac78a5a11bceaa87b4921d36f6cb /libs | |
| parent | 7608f9c8086f3978dde9bf285f4fff592f67f085 (diff) | |
| parent | abc53b54ecb15e06a54634ea67be9369b858e9ec (diff) | |
Merge branch 'main' into decomp/MapManager
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/c/include/stddef.h | 2 | ||||
| -rw-r--r-- | libs/nds/include/nds/Overlay.h | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libs/c/include/stddef.h b/libs/c/include/stddef.h index 4986043a..4858fe46 100644 --- a/libs/c/include/stddef.h +++ b/libs/c/include/stddef.h @@ -5,4 +5,6 @@ typedef unsigned int size_t; +#define offsetof(type, member) ((size_t) &((type *) NULL)->member) + #endif diff --git a/libs/nds/include/nds/Overlay.h b/libs/nds/include/nds/Overlay.h index 7a8c6fa9..5339a9d7 100644 --- a/libs/nds/include/nds/Overlay.h +++ b/libs/nds/include/nds/Overlay.h @@ -1,6 +1,10 @@ #ifndef _NDS_OVERLAY_H #define _NDS_OVERLAY_H +#ifdef __cplusplus +extern "C" { +#endif + typedef struct Overlay { /* 00 */ unk32 mId; /* 04 */ void *mBaseAddress; @@ -27,4 +31,8 @@ bool Overlay_Destroy(Overlay *overlay); bool Overlay_Load(Overlay *overlay, unk32 param2); bool Overlay_Unload(Overlay *overlay, unk32 param2); +#ifdef __cplusplus +} +#endif + #endif |
