mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-03 05:55:18 +01:00
Merge pull request #73 from Hoernchen/siclock
lib: rename the define, gcc already defines BIG_ENDIAN
This commit is contained in:
@@ -39,7 +39,7 @@ else()
|
||||
INCLUDE(TestBigEndian)
|
||||
TEST_BIG_ENDIAN(BIGENDIAN)
|
||||
if(${BIGENDIAN})
|
||||
add_definitions(-DBIG_ENDIAN)
|
||||
add_definitions(-DHACKRF_BIG_ENDIAN)
|
||||
endif(${BIGENDIAN})
|
||||
endif()
|
||||
find_package(USB1 REQUIRED)
|
||||
|
||||
@@ -34,7 +34,7 @@ typedef int bool;
|
||||
#define false 0
|
||||
#endif
|
||||
|
||||
#ifdef BIG_ENDIAN
|
||||
#ifdef HACKRF_BIG_ENDIAN
|
||||
#define TO_LE(x) __builtin_bswap32(x)
|
||||
#else
|
||||
#define TO_LE(x) x
|
||||
|
||||
Reference in New Issue
Block a user