Make sure __u64 is defined even for strict ansi or -std=c99
The x86 asm headers define __u64 regardless of __STRICT_ANSI__. The linux/videodev2.h header requires __u64 to be defined, thus this fixes compiling with -std=c99 when including the linux/videodev2.h header. In glibc, the asm/types.h header defines __u64 regardless of __STRICT_ANSI__. This is the change for the generated arch-arm/asm/types.h header, as produced by the update_all.py script (without all the other unrelated changes that the script produces). FWIW, the same issue also is present in arch-sh/asm/types.h, but there are no source headers for arch-sh in external/kernel-headers (and regenerating the headers simply removes that file). Change-Id: If05fcc9ed6ff5943602be121c7be140116e361fe
This commit is contained in:
parent
e22dfc46b7
commit
738b175a93
@ -25,7 +25,7 @@ typedef unsigned short __u16;
|
||||
typedef __signed__ int __s32;
|
||||
typedef unsigned int __u32;
|
||||
|
||||
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
||||
#ifdef __GNUC__
|
||||
typedef __signed__ long long __s64;
|
||||
typedef unsigned long long __u64;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user