Commit d86cb8ec9ef83e48f99c644d127373cf60a67046

Ozkan Sezer 2022-09-16T17:05:02

SDL_offscreenwindow.c: swap include order of SDL_egl_c.h/SDL_sysvideo.h Fixes redefinition warnings from windows builds. Reference issue: https://github.com/libsdl-org/SDL/issues/6239

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/video/offscreen/SDL_offscreenwindow.c b/src/video/offscreen/SDL_offscreenwindow.c
index 1730308..fd85f77 100644
--- a/src/video/offscreen/SDL_offscreenwindow.c
+++ b/src/video/offscreen/SDL_offscreenwindow.c
@@ -22,8 +22,8 @@
 
 #if SDL_VIDEO_DRIVER_OFFSCREEN
 
-#include "../SDL_egl_c.h"
 #include "../SDL_sysvideo.h"
+#include "../SDL_egl_c.h"
 
 #include "SDL_offscreenwindow.h"