lib: rename the define, gcc already defines BIG_ENDIAN
This commit is contained in:
@ -39,7 +39,7 @@ else()
|
|||||||
INCLUDE(TestBigEndian)
|
INCLUDE(TestBigEndian)
|
||||||
TEST_BIG_ENDIAN(BIGENDIAN)
|
TEST_BIG_ENDIAN(BIGENDIAN)
|
||||||
if(${BIGENDIAN})
|
if(${BIGENDIAN})
|
||||||
add_definitions(-DBIG_ENDIAN)
|
add_definitions(-DHACKRF_BIG_ENDIAN)
|
||||||
endif(${BIGENDIAN})
|
endif(${BIGENDIAN})
|
||||||
endif()
|
endif()
|
||||||
find_package(USB1 REQUIRED)
|
find_package(USB1 REQUIRED)
|
||||||
|
@ -34,7 +34,7 @@ typedef int bool;
|
|||||||
#define false 0
|
#define false 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BIG_ENDIAN
|
#ifdef HACKRF_BIG_ENDIAN
|
||||||
#define TO_LE(x) __builtin_bswap32(x)
|
#define TO_LE(x) __builtin_bswap32(x)
|
||||||
#else
|
#else
|
||||||
#define TO_LE(x) x
|
#define TO_LE(x) x
|
||||||
|
Reference in New Issue
Block a user