diff options
author | midipix <writeonce@midipix.org> | 2020-05-03 02:33:35 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-05-03 03:09:04 +0000 |
commit | 2854d6565a1b69d0ef45d644688ea6ff7701e09b (patch) | |
tree | 77bfad206933d153e8f7bcb2f3999892ffa7815b /arch | |
parent | 78fbe8e5cdba246d04b3d1f05067f2157980239d (diff) | |
download | mmglue-2854d6565a1b69d0ef45d644688ea6ff7701e09b.tar.bz2 mmglue-2854d6565a1b69d0ef45d644688ea6ff7701e09b.tar.xz |
nt32|nt64: provide __BYTE_ORDER definition in alltypes.h.
[while maintaining compatibility with older musl versions]
[cf. musl commit 97d35a552ec5b6ddf7923dd2f9a8eb973526acea]
Diffstat (limited to 'arch')
-rw-r--r-- | arch/nt32/bits/alltypes.h.in | 6 | ||||
-rw-r--r-- | arch/nt64/bits/alltypes.h.in | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/nt32/bits/alltypes.h.in b/arch/nt32/bits/alltypes.h.in index 4aa1992..d323a39 100644 --- a/arch/nt32/bits/alltypes.h.in +++ b/arch/nt32/bits/alltypes.h.in @@ -2,6 +2,12 @@ #define _Int64 long long #define _Reg int +#ifndef __BYTE_ORDER__ +#define __BYTE_ORDER__ 1234 +#endif + +#define __BYTE_ORDER __BYTE_ORDER__ + #if __GNUC__ >= 3 TYPEDEF __builtin_va_list va_list; TYPEDEF __builtin_va_list __isoc_va_list; diff --git a/arch/nt64/bits/alltypes.h.in b/arch/nt64/bits/alltypes.h.in index dc551d4..8f14895 100644 --- a/arch/nt64/bits/alltypes.h.in +++ b/arch/nt64/bits/alltypes.h.in @@ -2,6 +2,12 @@ #define _Int64 long #define _Reg long +#ifndef __BYTE_ORDER__ +#define __BYTE_ORDER__ 1234 +#endif + +#define __BYTE_ORDER __BYTE_ORDER__ + TYPEDEF __builtin_va_list va_list; TYPEDEF __builtin_va_list __isoc_va_list; |