From 568297b436f164d6a5328fbdb59759d8c04d309f Mon Sep 17 00:00:00 2001 From: Oliver Schonrock Date: Wed, 13 Nov 2024 13:48:35 +0000 Subject: [PATCH] ensure compatibility with mingw which, like other windows compilers also doesn't have access to endian.h --- sha1.cpp | 2 +- sha256.cpp | 2 +- sha3.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sha1.cpp b/sha1.cpp index 8331e92..6a4a658 100644 --- a/sha1.cpp +++ b/sha1.cpp @@ -7,7 +7,7 @@ #include "sha1.h" // big endian architectures need #define __BYTE_ORDER __BIG_ENDIAN -#ifndef _MSC_VER +#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(__MINGW64__) #include #endif diff --git a/sha256.cpp b/sha256.cpp index 8f0857d..98df261 100644 --- a/sha256.cpp +++ b/sha256.cpp @@ -7,7 +7,7 @@ #include "sha256.h" // big endian architectures need #define __BYTE_ORDER __BIG_ENDIAN -#ifndef _MSC_VER +#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(__MINGW64__) #include #endif diff --git a/sha3.cpp b/sha3.cpp index 2f6bc7b..77a318a 100644 --- a/sha3.cpp +++ b/sha3.cpp @@ -7,7 +7,7 @@ #include "sha3.h" // big endian architectures need #define __BYTE_ORDER __BIG_ENDIAN -#ifndef _MSC_VER +#if !defined(_MSC_VER) && !defined(__MINGW32__) && !defined(__MINGW64__) #include #endif