util/ByteOrder: add comments

This commit is contained in:
Max Kellermann 2013-11-21 23:04:31 +01:00
parent 37cf78ef45
commit 3a4df25db2
1 changed files with 2 additions and 0 deletions

View File

@ -33,9 +33,11 @@
#include <stdint.h>
#if defined(__i386__) || defined(__x86_64__) || defined(__ARMEL__)
/* well-known little-endian */
# define IS_LITTLE_ENDIAN true
# define IS_BIG_ENDIAN false
#else
/* well-known big-endian */
# define IS_LITTLE_ENDIAN false
# define IS_BIG_ENDIAN true
#endif