Make sure we haven't changed the size of the SDL_Event structure and broken binary compatibility.

This commit is contained in:
Sam Lantinga 2019-06-18 06:53:32 -07:00
parent 5418d41626
commit eb71cd800d
1 changed files with 3 additions and 0 deletions

View File

@ -594,6 +594,9 @@ typedef union SDL_Event
Uint8 padding[56];
} SDL_Event;
/* Make sure we haven't broken binary compatibility */
SDL_COMPILE_TIME_ASSERT(SDL_Event, sizeof(SDL_Event) == 56);
/* Function prototypes */