1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-26 15:14:02 +00:00

Use endian macros from kernel

This commit is contained in:
Christian kimocoder 2017-10-24 15:03:25 +02:00 committed by GitHub
parent 88030586b4
commit d2300a2790

View File

@ -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_ */