fix compatibility with GCC 4.4
that specific compiler chokes on duplicate typedefs, while newer ones do not. closes #293
This commit is contained in:
parent
49bdddbba9
commit
01432621e4
|
@ -324,11 +324,14 @@ enum wfa_elements
|
||||||
#define IEEE80211_STYPE_QOS_CFACKPOLL 0x00F0
|
#define IEEE80211_STYPE_QOS_CFACKPOLL 0x00F0
|
||||||
|
|
||||||
/* these types denote that the values are stored in a specific byte order */
|
/* these types denote that the values are stored in a specific byte order */
|
||||||
|
#ifndef LE16_DEFINED
|
||||||
|
#define LE16_DEFINED
|
||||||
typedef uint16_t le16;
|
typedef uint16_t le16;
|
||||||
typedef uint32_t le32;
|
typedef uint32_t le32;
|
||||||
|
|
||||||
typedef uint16_t be16;
|
typedef uint16_t be16;
|
||||||
typedef uint32_t be32;
|
typedef uint32_t be32;
|
||||||
|
#endif
|
||||||
|
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
struct radio_tap_header
|
struct radio_tap_header
|
||||||
|
|
|
@ -426,10 +426,13 @@ void perror(const char *s);
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef LE16_DEFINED
|
||||||
|
#define LE16_DEFINED
|
||||||
typedef u16 __bitwise be16;
|
typedef u16 __bitwise be16;
|
||||||
typedef u16 __bitwise le16;
|
typedef u16 __bitwise le16;
|
||||||
typedef u32 __bitwise be32;
|
typedef u32 __bitwise be32;
|
||||||
typedef u32 __bitwise le32;
|
typedef u32 __bitwise le32;
|
||||||
|
#endif
|
||||||
typedef u64 __bitwise be64;
|
typedef u64 __bitwise be64;
|
||||||
typedef u64 __bitwise le64;
|
typedef u64 __bitwise le64;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue