1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-22 21:34:37 +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_
#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_ */