[CRYPTLIB]

MSVC doesn't define __BYTE_ORDER__, so simply assume it is LE.

svn path=/trunk/; revision=61823
This commit is contained in:
Timo Kreuzer 2014-01-25 23:51:04 +00:00
parent eb50f7b329
commit 2815ad982d
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
#if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#if !defined(_MSC_VER) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#include <stdlib.h>
#include <intrin.h>
@ -22,5 +22,5 @@ byteReverse(unsigned char *buf, unsigned longs)
} while (--longs);
}
#endif // (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
#endif // !defined(_MSC_VER) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)

View file

@ -1,8 +1,7 @@
#pragma once
#if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
#if defined(_MSC_VER) || (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
#define byteReverse(buf, long)((void)(buf, long))
#else
void