Byte order macro. Be consistent and get rid of clang warnings.

This commit is contained in:
Al Poole 2018-03-01 18:35:16 +00:00
parent bff91e0885
commit d70733bbdc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);