mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
we need to include the directfb.h outside extern "C" because it includes c++ headers, or we will have an error: template with C linkage when compiling gource. similar to this issue here: https://github.com/msgpack/msgpack-c/issues/551
28 lines
614 B
Diff
28 lines
614 B
Diff
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" {
|
|
@@ -79,10 +84,6 @@ struct SDL_SysWMinfo;
|
|
|
|
#endif /* defined(SDL_VIDEO_DRIVER_X11) */
|
|
|
|
-#if defined(SDL_VIDEO_DRIVER_DIRECTFB)
|
|
-#include <directfb.h>
|
|
-#endif
|
|
-
|
|
#if defined(SDL_VIDEO_DRIVER_COCOA)
|
|
#ifdef __OBJC__
|
|
@class NSWindow;
|