Core: remove obsolete #pragma pack(1)

prevent misaligned pointer use by aligning tightly packed structs to 4
This commit is contained in:
Fabio Arnold 2026-03-21 11:41:56 +01:00
parent 271e8b8adc
commit ff8d78d2eb

View File

@ -88,8 +88,6 @@ typedef struct
static_assert(sizeof(crt_t) == 0x1D8, "");
#pragma pack(1)
namespace coreinit
{
@ -275,6 +273,8 @@ namespace coreinit
/* +0x04 */ MEMPTR<struct OSMutex> prev;
};
static_assert(sizeof(OSFastMutexLink) == 0x8);
struct OSFastMutex
{
/* +0x00 */ uint32be magic;
@ -620,8 +620,6 @@ namespace coreinit
void __OSDeleteAllActivePPCThreads();
}
#pragma pack()
// deprecated / clean up required
extern MPTR activeThread[256];
extern sint32 activeThreadCount;