v4l2: Don't redefine __bitwise if already set

https://bugzilla.gnome.org/show_bug.cgi?id=728438
This commit is contained in:
Nicolas Dufresne 2017-05-21 15:29:11 +02:00
parent 27310365d5
commit 9f936c9244

View file

@ -25,15 +25,20 @@
#define __TYPES_COMPAT_H__ #define __TYPES_COMPAT_H__
/* From linux/types.h */ /* From linux/types.h */
#ifdef __CHECKER__ #ifndef __bitwise__
#define __bitwise__ __attribute__((bitwise)) # ifdef __CHECKER__
#else # define __bitwise__ __attribute__((bitwise))
#define __bitwise__ # else
# define __bitwise__
# endif
#endif #endif
#ifdef __CHECK_ENDIAN__
#define __bitwise __bitwise__ #ifndef __bitwise
#else # ifdef __CHECK_ENDIAN__
#define __bitwise # define __bitwise __bitwise__
# else
# define __bitwise
# endif
#endif #endif
#define __u64 guint64 #define __u64 guint64