Use internal BIG_ENDIAN check

This commit is contained in:
Max Lv
2016-12-29 14:32:47 +08:00
parent b47d28920f
commit 60cdaf98df
+1 -1
View File
@@ -229,7 +229,7 @@ void *ss_realloc(void *ptr, size_t new_size);
ptr = NULL; \
} while (0)
#if BYTE_ORDER == BIG_ENDIAN
#ifdef WORDS_BIGENDIAN
#define CT_HTONS(n) (n)
#define CT_NTOHS(n) (n)