aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Poole <netstar@gmail.com>2018-03-01 18:35:16 +0000
committerAl Poole <netstar@gmail.com>2018-03-01 18:35:16 +0000
commitd70733bbdc2e612eff1b50a5f60d08a550a3c19b (patch)
tree3129b2947bf559bd0bf4074a051efce0afe42057
parentfileman: fix use after free and workaround issues on FreeBSD. (diff)
downloadenlightenment-d70733bbdc2e612eff1b50a5f60d08a550a3c19b.tar.gz
Byte order macro. Be consistent and get rid of clang warnings.
-rw-r--r--src/bin/e_xsettings.c2
-rw-r--r--src/modules/everything/md5.c2
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);