xref: /freebsd/contrib/wpa/src/utils/platform.h (revision c1d255d3ffdbe447de3ab875bf4e7d7accc5bfc5)
1*c1d255d3SCy Schubert /*
2*c1d255d3SCy Schubert  * Platform definitions for Radiotap parser
3*c1d255d3SCy Schubert  * Copyright (c) 2021, Jouni Malinen <j@w1.fi>
4*c1d255d3SCy Schubert  *
5*c1d255d3SCy Schubert  * This software may be distributed under the terms of the BSD license.
6*c1d255d3SCy Schubert  * See README for more details.
7*c1d255d3SCy Schubert  */
8*c1d255d3SCy Schubert 
95b9c547cSRui Paulo #ifndef PLATFORM_H
105b9c547cSRui Paulo #define PLATFORM_H
115b9c547cSRui Paulo 
125b9c547cSRui Paulo #include "includes.h"
135b9c547cSRui Paulo #include "common.h"
145b9c547cSRui Paulo 
15*c1d255d3SCy Schubert #define get_unaligned_le16(p)	WPA_GET_LE16((void *) (p))
16*c1d255d3SCy Schubert #define get_unaligned_le32(p)	WPA_GET_LE32((void *) (p))
175b9c547cSRui Paulo 
185b9c547cSRui Paulo #endif /* PLATFORM_H */
19