Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure we haven't changed the size of the SDL_Event structure and …
…broken binary compatibility.
  • Loading branch information
slouken committed Jun 18, 2019
1 parent 5418d41 commit eb71cd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/SDL_events.h
Expand Up @@ -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 */

Expand Down

0 comments on commit eb71cd8

Please sign in to comment.