[vlc-devel] [PATCH 1/2] include/vlc_vout_display.h: declare vout_display_SendWindowState() on OS/2
KO Myung-Hun
komh78 at gmail.com
Fri Jul 21 01:18:38 CEST 2017
-----
CC video_output/video_output.lo
video_output/video_output.c: In function 'ThreadChangeWindowState':
video_output/video_output.c:1298:9: error: implicit declaration of function 'vout_display_SendWindowState' [-Werror=implicit-function-declaration]
vout_display_SendWindowState(vout->p->display.vd, state);
^
cc1: some warnings being treated as errors
-----
---
include/vlc_vout_display.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 5cbd51481c..39dbfb95fb 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -367,7 +367,7 @@ static inline void vout_display_SendEventFullscreen(vout_display_t *vd, bool is_
{
vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_FULLSCREEN, is_fullscreen, is_window_fullscreen);
}
-#if defined(_WIN32)
+#if defined(_WIN32) || defined(__OS2__)
static inline void vout_display_SendWindowState(vout_display_t *vd, unsigned state)
{
vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_WINDOW_STATE, state);
--
2.11.0
More information about the vlc-devel
mailing list