File tree 2 files changed +17
-7
lines changed
2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,6 @@ if test "$XCONFIGURE" = "android"; then
49
49
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=32"
50
50
enable_largefile=no
51
51
enable_year2038=no] )
52
- # Further, endian.h is not guaranteed to define every function that
53
- # Gnulib seeks to replace, but Gnulib tests are not prepared for
54
- # such versions of endian.h as only define a subset of the functions
55
- # whose presence it tests. Force such tests to succeed as a stopgap
56
- # measure.
57
- gl_cv_header_working_endian_h=yes
58
52
fi
59
53
60
54
dnl Set emacs_config_options to the options of 'configure', quoted for the shell,
Original file line number Diff line number Diff line change @@ -69,8 +69,9 @@ _GL_INLINE_HEADER_BEGIN
69
69
# define BYTE_ORDER LITTLE_ENDIAN
70
70
#endif
71
71
72
- /* Make sure function-like macros get undefined. */
73
72
#if @HAVE_ENDIAN_H @
73
+
74
+ /* Make sure we don't have any system definitions. */
74
75
# undef be16toh
75
76
# undef be32toh
76
77
# undef be64toh
@@ -83,6 +84,21 @@ _GL_INLINE_HEADER_BEGIN
83
84
# undef htole16
84
85
# undef htole32
85
86
# undef htole64
87
+
88
+ /* Define our own. */
89
+ # define be16toh rpl_endian_be16toh
90
+ # define be32toh rpl_endian_be32toh
91
+ # define be64toh rpl_endian_be64toh
92
+ # define htobe16 rpl_endian_htobe16
93
+ # define htobe32 rpl_endian_htobe32
94
+ # define htobe64 rpl_endian_htobe64
95
+ # define le16toh rpl_endian_le16toh
96
+ # define le32toh rpl_endian_le32toh
97
+ # define le64toh rpl_endian_le64toh
98
+ # define htole16 rpl_endian_htole16
99
+ # define htole32 rpl_endian_htole32
100
+ # define htole64 rpl_endian_htole64
101
+
86
102
#endif
87
103
88
104
#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments