Author: tkreuzer
Date: Sat Jan 25 23:51:04 2014
New Revision: 61823
URL:
http://svn.reactos.org/svn/reactos?rev=61823&view=rev
Log:
[CRYPTLIB]
MSVC doesn't define __BYTE_ORDER__, so simply assume it is LE.
Modified:
trunk/reactos/lib/cryptlib/util.c
trunk/reactos/lib/cryptlib/util.h
Modified: trunk/reactos/lib/cryptlib/util.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cryptlib/util.c?rev=61…
==============================================================================
--- trunk/reactos/lib/cryptlib/util.c [iso-8859-1] (original)
+++ trunk/reactos/lib/cryptlib/util.c [iso-8859-1] Sat Jan 25 23:51:04 2014
@@ -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 @@
} while (--longs);
}
-#endif // (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
+#endif // !defined(_MSC_VER) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
Modified: trunk/reactos/lib/cryptlib/util.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cryptlib/util.h?rev=61…
==============================================================================
--- trunk/reactos/lib/cryptlib/util.h [iso-8859-1] (original)
+++ trunk/reactos/lib/cryptlib/util.h [iso-8859-1] Sat Jan 25 23:51:04 2014
@@ -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