mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 10:46:41 +00:00
tools: macOS: types.h: fix missing unsigned types
For some reason unsigned types were not added in commit0a06fcf608
("build: fix kernel 5.4 on macos"), which led to bunch of hacks, like commit3cc57ba462
("uboot-sunxi: add missing type __u64") or commit997ff740dc
("uboot-mediatek: fix build on Mac OS X"). So lets add the missing unsigned types to workaround it in a bit more maintainable way. Fixes: #13833 Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
parent
376f1c80a9
commit
4a8961f1df
@ -10,15 +10,20 @@
|
|||||||
#define _ASM_GENERIC_INT_LL64_H
|
#define _ASM_GENERIC_INT_LL64_H
|
||||||
|
|
||||||
typedef __signed__ char __s8;
|
typedef __signed__ char __s8;
|
||||||
|
typedef unsigned char __u8;
|
||||||
|
|
||||||
typedef __signed__ short __s16;
|
typedef __signed__ short __s16;
|
||||||
|
typedef unsigned short __u16;
|
||||||
|
|
||||||
typedef __signed__ int __s32;
|
typedef __signed__ int __s32;
|
||||||
|
typedef unsigned int __u32;
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
__extension__ typedef __signed__ long long __s64;
|
__extension__ typedef __signed__ long long __s64;
|
||||||
|
__extension__ typedef unsigned long long __u64;
|
||||||
#else
|
#else
|
||||||
typedef __signed__ long long __s64;
|
typedef __signed__ long long __s64;
|
||||||
|
typedef unsigned long long __u64;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _ASM_GENERIC_INT_LL64_H */
|
#endif /* _ASM_GENERIC_INT_LL64_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user