[vlc-devel] [PATCH][RFC] macosx: Remove typedef after enum declaration

Andrey Utkin andrey.krieger.utkin at gmail.com
Fri Apr 20 18:31:47 CEST 2012


---

For me, it breaks compilation of my app on inclusion of this header:
/Library/Frameworks/VLCKit.framework/Headers/VLCMediaListPlayer.h:38: error:
conflicting declaration 'typedef NSInteger VLCRepeatMode'
/Library/Frameworks/VLCKit.framework/Headers/VLCMediaListPlayer.h:33: error:
'enum VLCRepeatMode' has a previous declaration as 'enum VLCRepeatMode'

I use i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
        5658) (LLVM build 2336.1.00)

I'm not sure if this should be applied to upstream, or i have wrong
environment.

Also i want to ask - will such changes be merged to 2.0 branch? And what's the
schedule for such a merge, if it takes place?
---8<---
 .../framework/Headers/Public/VLCMediaListPlayer.h  |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/projects/macosx/framework/Headers/Public/VLCMediaListPlayer.h b/projects/macosx/framework/Headers/Public/VLCMediaListPlayer.h
index 2932ea7..f93e158 100644
--- a/projects/macosx/framework/Headers/Public/VLCMediaListPlayer.h
+++ b/projects/macosx/framework/Headers/Public/VLCMediaListPlayer.h
@@ -35,7 +35,6 @@ enum VLCRepeatMode {
     VLCRepeatCurrentItem,
     VLCRepeatAllItems
 };
-typedef NSInteger VLCRepeatMode;
 
 @interface VLCMediaListPlayer : NSObject {
     void *instance;
-- 
1.7.5.4




More information about the vlc-devel mailing list