wireshark/epan/crypt/airpdcap_interop.h

70 lines
886 B
C
Raw Normal View History

#ifndef _AIRPDCAP_INTEROP_H
#define _AIRPDCAP_INTEROP_H
/**
* Cast data types commonly used (e.g. UINT16) to their
* GLib equivalents.
*/
#include <glib.h>
#include <string.h>
#ifndef INT
typedef gint INT;
#endif
#ifndef UINT
typedef guint UINT;
#endif
#ifndef UINT8
typedef guint8 UINT8;
#endif
#ifndef UINT16
typedef guint16 UINT16;
#endif
#ifndef UINT32
typedef guint32 UINT32;
#endif
#ifndef UINT64
typedef guint64 UINT64;
#endif
#ifndef USHORT
typedef gushort USHORT;
#endif
#ifndef ULONG
typedef gulong ULONG;
#endif
#ifndef ULONGLONG
typedef guint64 ULONGLONG;
#endif
#ifndef CHAR
typedef gchar CHAR;
#endif
#ifndef UCHAR
typedef guchar UCHAR;
#endif
#ifndef size_t
typedef gsize size_t;
#endif
#ifdef WIN32
#include <winsock2.h> /* ntohs() */
#endif
#ifndef ntohs
#undef ntohs
#define ntohs(value) g_ntohs(value)
#endif
#endif /* _AIRPDCAP_INTEROP_H */