From eb71cd800d771034540adb891ac86e87bcdb7bd0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 18 Jun 2019 06:53:32 -0700 Subject: [PATCH] Make sure we haven't changed the size of the SDL_Event structure and broken binary compatibility. --- include/SDL_events.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/SDL_events.h b/include/SDL_events.h index 447e5390a..282b9fb76 100644 --- a/include/SDL_events.h +++ b/include/SDL_events.h @@ -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 */