Prefix.pch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifdef DEBUG
  2. #define __DEBUG__
  3. #endif
  4. #ifdef __OBJC__
  5. #import <_Prefix/NullabilityCompat.h>
  6. #if __has_feature(modules)
  7. @import Foundation;
  8. #else
  9. #import <Foundation/Foundation.h>
  10. #endif
  11. #ifdef TARGET_OS_SIMULATOR
  12. #define _THEOS_IS_SIMULATOR TARGET_OS_SIMULATOR
  13. #else
  14. #define _THEOS_IS_SIMULATOR TARGET_IPHONE_SIMULATOR
  15. #endif
  16. #if TARGET_IPHONE || _THEOS_IS_SIMULATOR
  17. #if __has_feature(modules)
  18. @import UIKit;
  19. #else
  20. #import <UIKit/UIKit.h>
  21. #endif
  22. #import <_Prefix/IOSWebKitCompatHacks.h>
  23. #endif
  24. #if TARGET_MACOSX
  25. #if __has_feature(modules)
  26. @import Cocoa;
  27. @import AppKit;
  28. #else
  29. #import <Cocoa/Cocoa.h>
  30. #import <AppKit/AppKit.h>
  31. #endif
  32. #endif
  33. #import <_Prefix/HBLog.h>
  34. #import <_Prefix/IOSMacros.h>
  35. #define NB [NSBundle mainBundle]
  36. #define UD [NSUserDefaults standardUserDefaults]
  37. #define FM [NSFileManager defaultManager]
  38. #endif
  39. #ifndef __clang__
  40. #import <Availability.h>
  41. #undef NS_AVAILABLE
  42. #define NS_AVAILABLE(osx, ios)
  43. #undef __OSX_AVAILABLE_STARTING
  44. #define __OSX_AVAILABLE_STARTING(osx, ios)
  45. #include <stdbool.h>
  46. #endif