[vlc-devel] [PATCH 2/2] vlc_vout_display: use VLC_DEPRECATED_ENUM for enumerators

Steve Lhomme robux4 at videolabs.io
Mon Aug 7 13:22:32 CEST 2017


It's not available on all GCCs

Fix regression from
057e5729c51c693e255c9348046c103b75bdb19c,
40c96414f343d2fd939cf3053d9dc80930891c7e,
c900e39cf935b77f0f47383eb95936297c650651
---
 include/vlc_vout_display.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 27566b776e..0cec353def 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -139,7 +139,7 @@ typedef struct {
 enum {
     /* Hide the mouse. It will be sent when
      * vout_display_t::info.b_hide_mouse is false */
-    VOUT_DISPLAY_HIDE_MOUSE VLC_DEPRECATED,
+    VOUT_DISPLAY_HIDE_MOUSE VLC_DEPRECATED_ENUM,
 
     /* Ask to reset the internal buffers after a VOUT_DISPLAY_EVENT_PICTURES_INVALID
      * request.
@@ -149,10 +149,10 @@ enum {
 #if defined(_WIN32) || defined(__OS2__)
     /* Ask the module to acknowledge/refuse the fullscreen state change after
      * being requested (externally or by VOUT_DISPLAY_EVENT_FULLSCREEN */
-    VOUT_DISPLAY_CHANGE_FULLSCREEN VLC_DEPRECATED,     /* bool fs */
+    VOUT_DISPLAY_CHANGE_FULLSCREEN VLC_DEPRECATED_ENUM,     /* bool fs */
     /* Ask the module to acknowledge/refuse the window management state change
      * after being requested externally or by VOUT_DISPLAY_WINDOW_STATE */
-    VOUT_DISPLAY_CHANGE_WINDOW_STATE VLC_DEPRECATED,   /* unsigned state */
+    VOUT_DISPLAY_CHANGE_WINDOW_STATE VLC_DEPRECATED_ENUM,   /* unsigned state */
 #endif
     /* Ask the module to acknowledge/refuse the display size change requested
      * (externally or by VOUT_DISPLAY_EVENT_DISPLAY_SIZE) */
-- 
2.12.1



More information about the vlc-devel mailing list