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:
rofl0r 2019-10-29 14:11:51 +00:00
parent 49bdddbba9
commit 01432621e4
2 changed files with 6 additions and 0 deletions

View File

@ -324,11 +324,14 @@ enum wfa_elements
#define IEEE80211_STYPE_QOS_CFACKPOLL 0x00F0
/* these types denote that the values are stored in a specific byte order */
#ifndef LE16_DEFINED
#define LE16_DEFINED
typedef uint16_t le16;
typedef uint32_t le32;
typedef uint16_t be16;
typedef uint32_t be32;
#endif
#pragma pack(1)
struct radio_tap_header

View File

@ -426,10 +426,13 @@ void perror(const char *s);
# endif
#endif
#ifndef LE16_DEFINED
#define LE16_DEFINED
typedef u16 __bitwise be16;
typedef u16 __bitwise le16;
typedef u32 __bitwise be32;
typedef u32 __bitwise le32;
#endif
typedef u64 __bitwise be64;
typedef u64 __bitwise le64;