mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-17 13:51:30 -06:00
Core: remove obsolete #pragma pack(1)
prevent misaligned pointer use by aligning tightly packed structs to 4
This commit is contained in:
parent
271e8b8adc
commit
ff8d78d2eb
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user