iOSSpecific.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. // Description : iOS specific declarations
  9. #ifndef CRYINCLUDE_CRYCOMMON_IOSSPECIFIC_H
  10. #define CRYINCLUDE_CRYCOMMON_IOSSPECIFIC_H
  11. #pragma once
  12. #include "AppleSpecific.h"
  13. #include <float.h>
  14. #include <TargetConditionals.h>
  15. #if TARGET_IPHONE_SIMULATOR
  16. #define IOS_SIMULATOR
  17. #include <xmmintrin.h>
  18. #define _CPU_AMD64
  19. #define _CPU_SSE
  20. #else
  21. #define _CPU_ARM
  22. #define _CPU_NEON
  23. #endif
  24. // detect 64bit iOS
  25. #if defined(__LP64__)
  26. #define PLATFORM_64BIT
  27. #endif
  28. #ifndef MOBILE
  29. #define MOBILE
  30. #endif
  31. // stubs for virtual keys, isn't used on iOS
  32. #define VK_UP 0
  33. #define VK_DOWN 0
  34. #define VK_RIGHT 0
  35. #define VK_LEFT 0
  36. #define VK_CONTROL 0
  37. #define VK_SCROLL 0
  38. #if !defined(PLATFORM_64BIT)
  39. #error "IOS build only supports the 64bit architecture"
  40. #else
  41. typedef uint64_t threadID;
  42. #endif
  43. #endif // CRYINCLUDE_CRYCOMMON_IOSSPECIFIC_H