Explorar o código

Use modern enumeration syntax to solve compilation issues in ObjC++ contexts

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Paulo Vitor Magacho da Silva %!s(int64=11) %!d(string=hai) anos
pai
achega
adc1a0b30f
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      Headers/Public/VLCMediaListPlayer.h

+ 1 - 2
Headers/Public/VLCMediaListPlayer.h

@@ -30,12 +30,11 @@
  * VLCRepeatMode
  * (don't repeat anything, repeat one, repeat all)
  */
-enum VLCRepeatMode {
+typedef NS_ENUM(NSInteger, VLCRepeatMode) {
     VLCDoNotRepeat,
     VLCRepeatCurrentItem,
     VLCRepeatAllItems
 };
-typedef NSInteger VLCRepeatMode;
 
 @interface VLCMediaListPlayer : NSObject {
     void *instance;