diff options
| author | 2022-08-15 08:48:17 +0200 | |
|---|---|---|
| committer | 2022-08-15 08:48:17 +0200 | |
| commit | f802bb99263aaa5be492999babd44cd2fdb1c65f (patch) | |
| tree | 233db41c788043913dae46af3483a3443fec5ffe /bootstrap/all.h | |
| parent | 91c3058ed332378c80ee337a2d834dfc7a4407e6 (diff) | |
align fix
Diffstat (limited to 'bootstrap/all.h')
| -rw-r--r-- | bootstrap/all.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstrap/all.h b/bootstrap/all.h index bb0711a..e458c15 100644 --- a/bootstrap/all.h +++ b/bootstrap/all.h @@ -491,12 +491,14 @@ struct comfile { /** Target **/ /************/ -#define alignof __alignof__ +#define alignof _Alignof static const struct targ { size_t ptrsize, shortsize, intsize, + i32align, + i64align, longsize, llongsize, sizesize, @@ -509,6 +511,8 @@ static const struct targ { .ptrsize = sizeof(void *), .shortsize = sizeof(short), .intsize = sizeof(int), + .i32align = alignof(int32_t), + .i64align = alignof(int64_t), .longsize = sizeof(long), .llongsize = sizeof(long long), .sizesize = sizeof(size_t), |