32blit / 32blit-sdk

32blit SDK
https://32blit.com
MIT License
197 stars 69 forks source link

Don't force 4-byte alignment on api structs #869

Closed Daft-Freak closed 1 month ago

Daft-Freak commented 1 month ago

There aren't any 64-bit members in these structs so this should have no affect on 32-bit platforms and the packing is causing problems with misaligned pointers on (mac) arm64.

Should fix this error: ld: building fixups: pointer not aligned at __ZL14blit_api_const+0x4 from 32blit-sdl/libBlitHalSDL.a[10](System.cpp.o)

Daft-Freak commented 1 month ago

Doesn't break the firmware and I can't reproduce the error anywhere other than the original action that failed so... only one way to find out!