[vlc-commits] macosx: avoid NS_ENUM to fix compilation on snow leopard

David Fuhrmann git at videolan.org
Fri Feb 28 14:06:51 CET 2014


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Feb 27 22:03:42 2014 +0100| [49f3d107ea373f4f240432f2a288e679059d1454] | committer: David Fuhrmann

macosx: avoid NS_ENUM to fix compilation on snow leopard

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=49f3d107ea373f4f240432f2a288e679059d1454
---

 modules/gui/macosx/misc.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/misc.h b/modules/gui/macosx/misc.h
index ffa2393..e3efdae 100644
--- a/modules/gui/macosx/misc.h
+++ b/modules/gui/macosx/misc.h
@@ -245,7 +245,7 @@
  *****************************************************************************/
 
 #ifndef MAC_OS_X_VERSION_10_8
-typedef NS_ENUM(NSInteger, NSByteCountFormatterCountStyle) {
+enum {
     // Specifies display of file or storage byte counts. The actual behavior for this is platform-specific; on OS X 10.7 and less, this uses the binary style, but decimal style on 10.8 and above
     NSByteCountFormatterCountStyleFile   = 0,
     // Specifies display of memory byte counts. The actual behavior for this is platform-specific; on OS X 10.7 and less, this uses the binary style, but that may change over time.
@@ -254,6 +254,7 @@ typedef NS_ENUM(NSInteger, NSByteCountFormatterCountStyle) {
     NSByteCountFormatterCountStyleDecimal = 2,    // 1000 bytes are shown as 1 KB
     NSByteCountFormatterCountStyleBinary  = 3     // 1024 bytes are shown as 1 KB
 };
+typedef NSInteger NSByteCountFormatterCountStyle;
 #endif
 
 @interface VLCByteCountFormatter : NSFormatter {



More information about the vlc-commits mailing list