File tree Expand file tree Collapse file tree 1 file changed +16
-21
lines changed Expand file tree Collapse file tree 1 file changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -95,24 +95,6 @@ static inline uint64_t git_bswap64(uint64_t x)
95
95
96
96
#endif
97
97
98
- #if defined(bswap32 )
99
-
100
- #undef ntohl
101
- #undef htonl
102
- #define ntohl (x ) bswap32(x)
103
- #define htonl (x ) bswap32(x)
104
-
105
- #endif
106
-
107
- #if defined(bswap64 )
108
-
109
- #undef ntohll
110
- #undef htonll
111
- #define ntohll (x ) bswap64(x)
112
- #define htonll (x ) bswap64(x)
113
-
114
- #else
115
-
116
98
#undef ntohll
117
99
#undef htonll
118
100
@@ -151,10 +133,23 @@ static inline uint64_t git_bswap64(uint64_t x)
151
133
# define ntohll (n ) (n)
152
134
# define htonll (n ) (n)
153
135
#else
154
- # define ntohll (n ) default_bswap64(n)
155
- # define htonll (n ) default_bswap64(n)
156
- #endif
157
136
137
+ # if defined(bswap32 )
138
+ # undef ntohl
139
+ # undef htonl
140
+ # define ntohl (x ) bswap32(x)
141
+ # define htonl (x ) bswap32(x)
142
+ # endif
143
+
144
+ # if defined(bswap64 )
145
+ # undef ntohll
146
+ # undef htonll
147
+ # define ntohll (x ) bswap64(x)
148
+ # define htonll (x ) bswap64(x)
149
+ # else
150
+ # define ntohll (n ) default_bswap64(n)
151
+ # define htonll (n ) default_bswap64(n)
152
+ # endif
158
153
#endif
159
154
160
155
static inline uint16_t get_be16 (const void * ptr )
You can’t perform that action at this time.
0 commit comments