Commit 49f3d107 authored by David Fuhrmann's avatar David Fuhrmann

macosx: avoid NS_ENUM to fix compilation on snow leopard

parent 8dd2cd4f
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment