No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

il2cpp-config-mono.h 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. #pragma once
  2. #include "il2cpp-config-platforms.h"
  3. #include <stdint.h>
  4. #define MONO_CONFIG_H_WAS_INCLUDED
  5. //If we're building for a windows platform, check that we're not building on xp or earlier
  6. #if IL2CPP_TARGET_WINDOWS
  7. #include "il2cpp-config-mono-win.h"
  8. #elif IL2CPP_TARGET_IOS
  9. #include "il2cpp-config-mono-ios.h"
  10. #elif IL2CPP_TARGET_DARWIN
  11. #include "il2cpp-config-mono-osx.h"
  12. #elif IL2CPP_TARGET_LINUX
  13. #include "il2cpp-config-mono-linux.h"
  14. #elif IL2CPP_TARGET_QNX
  15. #include "il2cpp-config-mono-qnx.h"
  16. #elif IL2CPP_TARGET_ANDROID
  17. #include "il2cpp-config-mono-android.h"
  18. #elif IL2CPP_TARGET_JAVASCRIPT
  19. #include "il2cpp-config-mono-web.h"
  20. #elif IL2CPP_USE_PLATFORM_CONFIG
  21. #include "il2cpp-config-mono-platform.h"
  22. #else
  23. //Uncomment out after all platforms defines moved to header file
  24. //#error "Mono Code Compiled on Unimplemented Platform"
  25. #endif
  26. #if defined(PID_T_IS_INT)
  27. typedef int pid_t;
  28. #endif
  29. //This value will need to be checked each time we update mono
  30. #define MONO_CORLIB_VERSION 1050001000
  31. #define VERSION "5.0.1"
  32. #if defined(ARCHITECTURE_IS_X86)
  33. #define HOST_X86 1
  34. #define TARGET_X86 1
  35. #define MONO_ARCHITECTURE "x86"
  36. #elif defined(ARCHITECTURE_IS_AMD64)
  37. #define HOST_AMD64 1
  38. #define TARGET_AMD64 1
  39. #define MONO_ARCHITECTURE "amd64"
  40. #elif defined(ARCHITECTURE_IS_ARMv7)
  41. #define HOST_ARM 1
  42. #define TARGET_ARM 1
  43. #define MONO_ARCHITECTURE "arm"
  44. #define HAVE_ARMV7 1
  45. #elif defined(ARCHITECTURE_IS_AARCH64)
  46. #define HOST_AARCH64 1
  47. #define TARGET_AARCH64 1
  48. #define MONO_ARCHITECTURE "aarch64"
  49. #elif defined(ARCHITECTURE_IS_ARM64)
  50. #define HOST_ARM64 1
  51. #define TARGET_ARM64 1
  52. #define MONO_ARCHITECTURE "arm64"
  53. #elif defined(ARCHITECTURE_IS_WEB)
  54. #define TARGET_WASM 1
  55. #define MONO_ARCHITECTURE "wasm"
  56. #else
  57. #error Architecture not defined for this platform
  58. #endif
  59. typedef uintptr_t gsize;
  60. typedef intptr_t gssize;
  61. #define G_GSIZE_FORMAT "PRIdPTR"
  62. #if defined(GPID_IS_VOID_P)
  63. typedef void * GPid;
  64. #elif defined(GPID_IS_INT)
  65. typedef int GPid;
  66. #else
  67. #error GPID type is not defined for this platform
  68. #endif
  69. #if defined(PLATFORM_IS_LITTLE_ENDIAN)
  70. #define G_BYTE_ORDER G_LITTLE_ENDIAN
  71. #define TARGET_BYTE_ORDER G_LITTLE_ENDIAN
  72. #else
  73. #error Platform Endianness is not defined for this platform
  74. #endif
  75. #if defined(G_DIR_SEPARATOR_IS_BACKSLASH)
  76. #define G_DIR_SEPARATOR '\\'
  77. #define G_DIR_SEPARATOR_S "\\"
  78. #elif defined(G_DIR_SEPARATOR_IS_FORWARDSLASH)
  79. #define G_DIR_SEPARATOR '/'
  80. #define G_DIR_SEPARATOR_S "/"
  81. #else
  82. #error G_DIR_SEPARATOR not defined for this platform
  83. #endif
  84. #if defined(G_SEARCHPATH_SEPARATOR_IS_SEMICOLON)
  85. #define G_SEARCHPATH_SEPARATOR ';'
  86. #define G_SEARCHPATH_SEPARATOR_S ";"
  87. #elif defined(G_SEARCHPATH_SEPARATOR_IS_COLON)
  88. #define G_SEARCHPATH_SEPARATOR ':'
  89. #define G_SEARCHPATH_SEPARATOR_S ":"
  90. #else
  91. #error G_SEARCHPATH_SEPARATOR not defined for this platform
  92. #endif
  93. #if defined(STDOUT_STDERR_REQUIRES_CAST)
  94. #define STDOUT_FILENO (int)(intptr_t)stdout
  95. #define STDERR_FILENO (int)(intptr_t)stderr
  96. #endif
  97. #if defined(HAVE_GNUC_PRETTY_FUNCTION)
  98. #define G_GNUC_PRETTY_FUNCTION __FUNCTION__
  99. #else
  100. #define G_GNUC_PRETTY_FUNCTION
  101. #endif
  102. #if defined(HAVE_DEV_RANDOM)
  103. #define NAME_DEV_RANDOM "/dev/random"
  104. #else
  105. #define NAME_DEV_RANDOM
  106. #endif
  107. #if defined(HAVE_GNUC_UNUSED)
  108. #define G_GNUC_UNUSED __attribute__((__unused__))
  109. #else
  110. #define G_GNUC_UNUSED
  111. #endif
  112. #if defined(HAVE_GNUC_NORETURN)
  113. #define G_GNUC_NORETURN __attribute__((__noreturn__))
  114. #else
  115. #define G_GNUC_NORETURN
  116. #endif
  117. #define SIZEOF_VOID_P IL2CPP_SIZEOF_VOID_P
  118. #define SIZEOF_REGISTER IL2CPP_SIZEOF_VOID_P
  119. #define SIZEOF_SIZE_T sizeof(size_t)
  120. #define SIZEOF_LONG sizeof(long)
  121. #define SIZEOF_INT sizeof(int)
  122. #define SIZEOF_LONG_LONG sizeof(long long)