浏览代码

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 年之前
父节点
当前提交
adc1a0b30f
共有 1 个文件被更改,包括 1 次插入2 次删除
  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;