commit | 973ced4ffe33ecb6f83785bde95310ba810e4c21 | [log] [tgz] |
---|---|---|
author | Sam Lantinga <slouken@libsdl.org> | Tue Jun 18 06:53:32 2019 -0700 |
committer | Sam Lantinga <slouken@libsdl.org> | Tue Jun 18 06:53:32 2019 -0700 |
tree | 4c6cce2be73da830445a9e44861f2d8c9207a319 | |
parent | 47c068debed39b48033e43c8480442ff9fdb5541 [diff] |
Make sure we haven't changed the size of the SDL_Event structure and broken binary compatibility.
diff --git a/include/SDL_events.h b/include/SDL_events.h index 447e539..282b9fb 100644 --- a/include/SDL_events.h +++ b/include/SDL_events.h
@@ -594,6 +594,9 @@ 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 */