diff --git a/reactos/lib/cryptlib/util.c b/reactos/lib/cryptlib/util.c index 9858ec78528..7416faab2de 100644 --- a/reactos/lib/cryptlib/util.c +++ b/reactos/lib/cryptlib/util.c @@ -1,6 +1,6 @@ -#if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) +#if !defined(_MSC_VER) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) #include #include @@ -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__) diff --git a/reactos/lib/cryptlib/util.h b/reactos/lib/cryptlib/util.h index f2e2cf526af..c3c864f428d 100644 --- a/reactos/lib/cryptlib/util.h +++ b/reactos/lib/cryptlib/util.h @@ -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