bbplatform.h 743 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef BB_PLATFORM_H
  2. #define BB_PLATFORM_H
  3. #ifdef _WIN32
  4. #define BB_WINDOWS 1
  5. #ifdef _WIN64
  6. #endif
  7. #elif __APPLE__
  8. #include "TargetConditionals.h"
  9. #if TARGET_IPHONE_SIMULATOR
  10. #define BB_IOS 1
  11. #elif TARGET_OS_IPHONE
  12. #define BB_IOS 1
  13. #elif TARGET_OS_MAC
  14. #define BB_MACOS 1
  15. #else
  16. #error "Unknown Apple platform"
  17. #endif
  18. #elif __EMSCRIPTEN__
  19. #define BB_EMSCRIPTEN 1
  20. #elif __ANDROID__
  21. #define BB_ANDROID 1
  22. #elif __linux__
  23. #define BB_LINUX 1
  24. /*
  25. #elif __unix__ // all unices not caught above
  26. // Unix
  27. #elif defined(_POSIX_VERSION)
  28. // POSIX
  29. */
  30. #else
  31. #error "Unknown compiler"
  32. #endif
  33. #endif