Skip to content

Commit 5579120

Browse files
committed
Remove endian.h
1 parent 9da2fec commit 5579120

File tree

2 files changed

+7
-85
lines changed

2 files changed

+7
-85
lines changed

tests/unit/endian.h

-78
This file was deleted.

tests/unit/unicorn_test.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <stdint.h>
66
#include <unicorn/unicorn.h>
77
#include "acutest.h"
8-
#include "endian.h"
8+
#include "config-host.h"
99

1010
// Copied from glibc-2.29
1111

@@ -41,16 +41,16 @@
4141
*/
4242
#define OK(stat) uc_assert_err(UC_ERR_OK, stat)
4343

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
44+
#ifdef BOOST_BIG_ENDIAN
5045
#define LEINT32(x) (bswap_32(x))
5146
#define LEINT64(x) (bswap_64(x))
5247
#define BEINT32(x) (x)
5348
#define BEINT64(x) (x)
49+
#else
50+
#define LEINT32(x) (x)
51+
#define LEINT64(x) (x)
52+
#define BEINT32(x) (bswap_32(x))
53+
#define BEINT64(x) (bswap_64(x))
5454
#endif
5555

5656
#endif /* UNICORN_TEST_H */

0 commit comments

Comments
 (0)