Browse Source

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 11 years ago
parent
commit
adc1a0b30f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Headers/Public/VLCMediaListPlayer.h

+ 1 - 2
Headers/Public/VLCMediaListPlayer.h

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