aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2/fix-directfb-include.patch
blob: 5ddf7b198ae5b9ecc166c3c289aa47d9abb1b663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/include/SDL_syswm.h b/include/SDL_syswm.h
index 2d18afb..6416e2f 100644
--- a/include/SDL_syswm.h
+++ b/include/SDL_syswm.h
@@ -34,6 +34,11 @@
 #include "SDL_version.h"
 
 #include "begin_code.h"
+
+#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
+#include <directfb.h>
+#endif
+
 /* Set up for C function definitions, even when using C++ */
 #ifdef __cplusplus
 extern "C" {