mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Fixed another gcc <-> Visual C++ ABI issue
This commit is contained in:
parent
9090fb9b4c
commit
49796bf2b6
|
|
@ -438,6 +438,15 @@ typedef union SDL_Event
|
|||
SDL_MultiGestureEvent mgesture; /**< Multi Finger Gesture data */
|
||||
SDL_DollarGestureEvent dgesture; /**< Multi Finger Gesture data */
|
||||
SDL_DropEvent drop; /**< Drag and drop event data */
|
||||
|
||||
/* This is necessary for ABI compatibility between Visual C++ and GCC
|
||||
Visual C++ will respect the push pack pragma and use 52 bytes for
|
||||
this structure, and GCC will use the alignment of the largest datatype
|
||||
within the union, which is 8 bytes.
|
||||
|
||||
So... we'll add padding to force the size to be 56 bytes for both.
|
||||
*/
|
||||
Uint8 padding[56];
|
||||
} SDL_Event;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user