diff --git a/3rdparty/sha2/sha2.c b/3rdparty/sha2/sha2.c index fb42adee4..7ad5ea666 100644 --- a/3rdparty/sha2/sha2.c +++ b/3rdparty/sha2/sha2.c @@ -84,6 +84,10 @@ * where the appropriate definitions are actually * made). */ +#ifdef __MINGW32__ +#include +#endif + #if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN) #error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN #endif diff --git a/3rdparty/sha2/sha2.h b/3rdparty/sha2/sha2.h index bf759ad45..e8413e549 100644 --- a/3rdparty/sha2/sha2.h +++ b/3rdparty/sha2/sha2.h @@ -71,7 +71,7 @@ extern "C" { * uintXX_t (from inttypes.h), you may need to define things by hand * for your system: */ -#if 0 +#ifdef __MINGW32__ typedef unsigned char u_int8_t; /* 1-byte (8-bits) */ typedef unsigned int u_int32_t; /* 4-bytes (32-bits) */ typedef unsigned long long u_int64_t; /* 8-bytes (64-bits) */