Future-proof the layout of AsyncTask.

This commit is contained in:
John McCall
2021-05-20 04:20:55 -04:00
parent 7739d78e64
commit db3967f41d
11 changed files with 253 additions and 173 deletions

View File

@@ -128,4 +128,13 @@
#define SWIFT_ASSERT_ONLY(...) do { __VA_ARGS__; } while (false)
#endif
#if defined(__LP64__) || defined(_WIN64)
#define SWIFT_POINTER_IS_8_BYTES 1
#define SWIFT_POINTER_IS_4_BYTES 0
#else
// TODO: consider supporting 16-bit targets
#define SWIFT_POINTER_IS_8_BYTES 0
#define SWIFT_POINTER_IS_4_BYTES 1
#endif
#endif // SWIFT_BASIC_COMPILER_H