mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-23 05:44:40 +00:00
Use endian macros from kernel
This commit is contained in:
parent
88030586b4
commit
d2300a2790
@ -21,18 +21,10 @@
|
|||||||
#define _RTL871X_BYTEORDER_H_
|
#define _RTL871X_BYTEORDER_H_
|
||||||
|
|
||||||
|
|
||||||
#if defined(CONFIG_LITTLE_ENDIAN) && defined (CONFIG_BIG_ENDIAN)
|
#if defined(__LITTLE_ENDIAN)
|
||||||
#error "Shall be CONFIG_LITTLE_ENDIAN or CONFIG_BIG_ENDIAN, but not both!\n"
|
#include <byteorder/little_endian.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(CONFIG_LITTLE_ENDIAN)
|
|
||||||
#ifndef CONFIG_PLATFORM_MSTAR389
|
|
||||||
#include <byteorder/little_endian.h>
|
|
||||||
#endif
|
|
||||||
#elif defined (CONFIG_BIG_ENDIAN)
|
|
||||||
#include <byteorder/big_endian.h>
|
|
||||||
#else
|
#else
|
||||||
# error "Must be LITTLE/BIG Endian Host"
|
#include <byteorder/big_endian.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _RTL871X_BYTEORDER_H_ */
|
#endif /* _RTL871X_BYTEORDER_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user