Skip to content

Commit 94680b7

Browse files
committed
fix for wayland
1 parent 2fdbfcf commit 94680b7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

3rd/SDL/src/SDL_internal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
#endif
4949

5050
#include "SDL_config.h"
51+
#include <string.h>
52+
#include <stdlib.h>
5153

5254
#endif /* SDL_internal_h_ */
5355

awtk_config_common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,10 @@ def joinPath(root, subdir):
146146

147147
if SDL_VIDEODRIVER == 'wayland':
148148
OS_LIBS = ['GL', 'xkbcommon', 'wayland-cursor', 'wayland-egl', 'wayland-client'] + OS_LIBS;
149-
OS_FLAGS += '-DWITHOUT_NATIVE_FILE_DIALOG '
149+
OS_FLAGS += '-DWITHOUT_NATIVE_FILE_DIALOG -DSDL_VIDEO_DRIVER_WAYLAND=1 '
150150
else:
151151
OS_LIBS = ['GL', 'gtk-3', 'gdk-3', 'glib-2.0', 'gobject-2.0', 'Xext', 'X11'] + OS_LIBS;
152152

153-
154153
elif OS_NAME == 'Windows':
155154
if not os.path.exists(os.path.abspath(TK_BIN_DIR)):
156155
os.makedirs(os.path.abspath(TK_BIN_DIR))

0 commit comments

Comments
 (0)