VLC for iOS-Prefix.pch 871 B

12345678910111213141516171819202122232425262728293031323334
  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. #import "VLCFixups.h"
  16. #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
  17. #ifdef __IPHONE_7_0
  18. #define SYSTEM_RUNS_IOS7_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")
  19. #else
  20. #define SYSTEM_RUNS_IOS7_OR_LATER NO
  21. #endif
  22. #ifndef NDEBUG
  23. #define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
  24. #else
  25. #define APLog(format, ...)
  26. #endif