VLC for iOS-Prefix.pch 849 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // Prefix header for all source files of the 'vlc-ios' target in the 'VLC for iOS' project
  3. //
  4. #import <Availability.h>
  5. #ifndef __IPHONE_4_0
  6. #warning "This project uses features only available in iOS SDK 4.0 and later."
  7. #endif
  8. #ifdef __OBJC__
  9. #import <UIKit/UIKit.h>
  10. #import <Foundation/Foundation.h>
  11. #endif
  12. #import <MobileVLCKit/MobileVLCKit.h>
  13. #import <MediaLibraryKit/MediaLibraryKit.h>
  14. #import "VLCConstants.h"
  15. #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
  16. #ifdef __IPHONE_7_0
  17. #define SYSTEM_RUNS_IOS7_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")
  18. #else
  19. #define SYSTEM_RUNS_IOS7_OR_LATER NO
  20. #endif
  21. #ifndef NDEBUG
  22. #define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
  23. #else
  24. #define APLog(format, ...)
  25. #endif