mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[CRYPTLIB]
MSVC doesn't define __BYTE_ORDER__, so simply assume it is LE. svn path=/trunk/; revision=61823
This commit is contained in:
parent
eb50f7b329
commit
2815ad982d
2 changed files with 3 additions and 4 deletions
|
@ -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__)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue