|
Nov. 5th, 2021|09:57 pm |
Новый хэш поломал сборку под винды, потому что там докУментов endian.h нету
Поэтому вариант 1 ============================ Index: libs/core/crypto/ripemd160.c ================================================================== --- libs/core/crypto/ripemd160.c +++ libs/core/crypto/ripemd160.c @@ -20,11 +20,11 @@ # undef WORDS_BIGENDIAN # endif #else # ifdef BSD # include [ Error: Irreparable invalid markup ('<sys/endian.h>') in entry. Owner must fix manually. Raw contents below.] Новый хэш поломал сборку под винды, потому что там <s>докУментов</s> endian.h нету
Поэтому вариант 1 ============================ Index: libs/core/crypto/ripemd160.c ================================================================== --- libs/core/crypto/ripemd160.c +++ libs/core/crypto/ripemd160.c @@ -20,11 +20,11 @@ # undef WORDS_BIGENDIAN # endif #else # ifdef BSD # include <sys/endian.h> -# else +# elif __linux__ # include <endian.h> # endif # if __BYTE_ORDER == __BIG_ENDIAN # define WORDS_BIGENDIAN 1 # elif __BYTE_ORDER == __LITTLE_ENDIAN ============================
Вариант два: ============================ Index: CMakeLists.txt ================================================================== --- CMakeLists.txt +++ CMakeLists.txt @@ -143,10 +143,11 @@ set( RES_FLAGS -Fpe-i386 ) if (WITH_WNT64) message(STATUS "*** 64-bit builds are UNSUPPORTED ***") add_definitions(-DSTK_TIMET_FIX) + add_definitions(-DSTK_ENDIAN_FIX) set( RES_FLAGS -Fpe-x86-64 ) endif () set(K8_UNFUCK_AS_GCC ON) set(K8_UNFUCK_AS_SHITLANG OFF)
Index: libs/core/crypto/ripemd160.c ================================================================== --- libs/core/crypto/ripemd160.c +++ libs/core/crypto/ripemd160.c @@ -10,23 +10,26 @@ #endif #ifdef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN #endif + #if defined(__BIG_ENDIAN__) # define WORDS_BIGENDIAN 1 #elif defined(__LITTLE_ENDIAN__) # ifdef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN # endif #else +#ifndef STK_ENDIAN_FIX # ifdef BSD # include <sys/endian.h> # else # include <endian.h> # endif +#endif //STK_ENDIAN_FIX # if __BYTE_ORDER == __BIG_ENDIAN # define WORDS_BIGENDIAN 1 # elif __BYTE_ORDER == __LITTLE_ENDIAN # ifdef WORDS_BIGENDIAN # undef WORDS_BIGENDIAN ============================
Не знаю, есть ли в твоём MXE этот самый endian.h, но если нету, то первый вариант спасёт и тебя тоже :) |
|