netstar pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=d70733bbdc2e612eff1b50a5f60d08a550a3c19b
commit d70733bbdc2e612eff1b50a5f60d08a550a3c19b Author: Al Poole <nets...@gmail.com> Date: Thu Mar 1 18:35:16 2018 +0000 Byte order macro. Be consistent and get rid of clang warnings. --- src/bin/e_xsettings.c | 2 +- src/modules/everything/md5.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_xsettings.c b/src/bin/e_xsettings.c index 73a66c812..344094f4e 100644 --- a/src/bin/e_xsettings.c +++ b/src/bin/e_xsettings.c @@ -353,7 +353,7 @@ _e_xsettings_apply(Settings_Manager *sm) pos = data = calloc(1, len); if (!data) return; -#if (__BYTE_ORDER == __LITTLE_ENDIAN) || (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) +#if (defined __BYTE_ORDER && __BYTE_ORDER == __LITTLE_ENDIAN) || (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) *pos = 0; //LSBFirst #else *pos = 1; //MSBFirst diff --git a/src/modules/everything/md5.c b/src/modules/everything/md5.c index 70baf0032..1fd97c29f 100644 --- a/src/modules/everything/md5.c +++ b/src/modules/everything/md5.c @@ -22,7 +22,7 @@ #include <string.h> /* for memcpy() */ #include "md5.h" -#if (__BYTE_ORDER == 1234) || (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) +#if (defined __BYTE_ORDER && __BYTE_ORDER == __LITTLE_ENDIAN) || (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) #define byteReverse(buf, len) /* Nothing */ #else void byteReverse(unsigned char *buf, unsigned longs); --