mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 05:46:00 +00:00
kmsdrm: Fix an LTO type mismatch warning
Include SDL_kmsdrmopengles.h before SDL_kmsdrmvulkan.h, as the Vulkan header can pull in Wayland headers, which pull in EGL headers with EGL types defined as Wayland types, which causes warnings when building with strict-aliasing and LTO.
This commit is contained in:
@@ -23,6 +23,12 @@
|
||||
|
||||
#ifdef SDL_VIDEO_DRIVER_KMSDRM
|
||||
|
||||
/* Include this before SDL_kmsdrmvulkan.h, as the Vulkan header can pull in
|
||||
* Wayland headers, which pull in EGL headers with EGL types defined as Wayland
|
||||
* types, which causes warnings when building with strict-aliasing and LTO.
|
||||
*/
|
||||
#include "SDL_kmsdrmopengles.h"
|
||||
|
||||
/* include this here before SDL_sysvideo.h to avoid vulkan type
|
||||
* redefinition errors. it already includes SDL_sysvideo.h. */
|
||||
#include "SDL_kmsdrmvulkan.h"
|
||||
@@ -43,7 +49,6 @@
|
||||
#include "SDL_kmsdrmevents.h"
|
||||
#include "SDL_kmsdrmmouse.h"
|
||||
#include "SDL_kmsdrmvideo.h"
|
||||
#include "SDL_kmsdrmopengles.h"
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <poll.h>
|
||||
|
Reference in New Issue
Block a user