We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9da2fec commit 5579120Copy full SHA for 5579120
tests/unit/endian.h
tests/unit/unicorn_test.h
@@ -5,7 +5,7 @@
5
#include <stdint.h>
6
#include <unicorn/unicorn.h>
7
#include "acutest.h"
8
-#include "endian.h"
+#include "config-host.h"
9
10
// Copied from glibc-2.29
11
@@ -41,16 +41,16 @@
41
*/
42
#define OK(stat) uc_assert_err(UC_ERR_OK, stat)
43
44
-#ifdef BOOST_LITTLE_ENDIAN
45
-#define LEINT32(x) (x)
46
-#define LEINT64(x) (x)
47
-#define BEINT32(x) (bswap_32(x))
48
-#define BEINT64(x) (bswap_64(x))
49
-#else
+#ifdef BOOST_BIG_ENDIAN
50
#define LEINT32(x) (bswap_32(x))
51
#define LEINT64(x) (bswap_64(x))
52
#define BEINT32(x) (x)
53
#define BEINT64(x) (x)
+#else
+#define LEINT32(x) (x)
+#define LEINT64(x) (x)
+#define BEINT32(x) (bswap_32(x))
+#define BEINT64(x) (bswap_64(x))
54
#endif
55
56
#endif /* UNICORN_TEST_H */
0 commit comments