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