summaryrefslogtreecommitdiff
path: root/builtin/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/endian.h')
-rw-r--r--builtin/endian.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/endian.h b/builtin/endian.h
index 8a50cb4815..8ea6cb2da9 100644
--- a/builtin/endian.h
+++ b/builtin/endian.h
@@ -32,12 +32,12 @@ static inline uint64_t be64toh(uint64_t in)
return __builtin_bswap64(in);
}
+#endif /* __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ */
+
#define htobe16 be16toh
#define htobe32 be32toh
#define htobe64 be64toh
-#endif /* __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ */
-
#ifdef __cplusplus
}
#endif