소스 검색

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

Sam Lantinga 6 년 전
부모
커밋
eb71cd800d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      include/SDL_events.h

+ 3 - 0
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 */