Use cast operators in headers to avoid warnings

This avoids compiler warnings when consuming the
headers from C++.
This commit is contained in:
Albin Johansson authored and Ryan C. Gordon committed 2025-10-25 19:52:23 -04:00
1 parent e08edab180
commit 7381a2b072
3 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -1069,7 +1069,7 @@ typedef union SDL_Event
} SDL_Event;
/* Make sure we haven't broken binary compatibility */
SDL_COMPILE_TIME_ASSERT(SDL_Event, sizeof(SDL_Event) == sizeof(((SDL_Event *)NULL)->padding));
SDL_COMPILE_TIME_ASSERT(SDL_Event, sizeof(SDL_Event) == sizeof((SDL_static_cast(SDL_Event *, NULL))->padding));
/* Function prototypes */