forked from enlightenment/enlightenment
Byte order macro. Be consistent and get rid of clang warnings.
This commit is contained in:
parent
bff91e0885
commit
d70733bbdc
|
@ -353,7 +353,7 @@ _e_xsettings_apply(Settings_Manager *sm)
|
||||||
pos = data = calloc(1, len);
|
pos = data = calloc(1, len);
|
||||||
if (!data) return;
|
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
|
*pos = 0; //LSBFirst
|
||||||
#else
|
#else
|
||||||
*pos = 1; //MSBFirst
|
*pos = 1; //MSBFirst
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <string.h> /* for memcpy() */
|
#include <string.h> /* for memcpy() */
|
||||||
#include "md5.h"
|
#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 */
|
#define byteReverse(buf, len) /* Nothing */
|
||||||
#else
|
#else
|
||||||
void byteReverse(unsigned char *buf, unsigned longs);
|
void byteReverse(unsigned char *buf, unsigned longs);
|
||||||
|
|
Loading…
Reference in New Issue