From 69c8a4f9c6970f7453bc33aa82b542754172ff31 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 10 Nov 2017 14:15:30 -0500 Subject: Prefix IS_LITTLE_ENDIAN and IS_BIG_ENDIAN with CRYPTOPP --- integer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'integer.cpp') diff --git a/integer.cpp b/integer.cpp index 732c7962..8eadc47e 100644 --- a/integer.cpp +++ b/integer.cpp @@ -318,7 +318,7 @@ public: #endif { #if defined(CRYPTOPP_NATIVE_DWORD_AVAILABLE) -# if defined(IS_LITTLE_ENDIAN) +# if defined(CRYPTOPP_LITTLE_ENDIAN) const word t[2] = {low,high}; memcpy(&m_whole, &t, sizeof(m_whole)); # else @@ -423,7 +423,7 @@ private: // Thanks to Martin Bonner at http://stackoverflow.com/a/39507183 struct half_words { - #ifdef IS_LITTLE_ENDIAN + #ifdef CRYPTOPP_LITTLE_ENDIAN word low; word high; #else -- cgit v1.2.1