Skip to content

Commit 3288b4b

Browse files
committed
1 parent daea7c5 commit 3288b4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stdendian.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@
113113
#define __ENDIAN_DEFINED 1
114114
#endif /* sun */
115115

116-
/* Windows (also Emscripten) */
117-
#if defined(_WIN32) || defined(_MSC_VER) || defined(__EMSCRIPTEN__)
116+
/* Windows */
118117
/* assumes all Microsoft targets are little endian. */
119118
/* Emscripten (emcc) also currently assumes little endian. */
119+
#if defined(_WIN32) || defined(_MSC_VER) || defined(__EMSCRIPTEN__)
120120
#define _LITTLE_ENDIAN 1234
121121
#define _BIG_ENDIAN 4321
122122
#define _BYTE_ORDER _LITTLE_ENDIAN
@@ -227,7 +227,7 @@ inline uint64_t bswap64(uint64_t x) {
227227
#define le16toh(x) ((uint16_t)(x))
228228

229229
#define htobe32(x) bswap32((x))
230-
#define htole32(x) ((uint32_t((x))
230+
#define htole32(x) ((uint32_t)(x))
231231
#define be32toh(x) bswap32((x))
232232
#define le32toh(x) ((uint32_t)(x))
233233

0 commit comments

Comments
 (0)