termux-packages/packages/p7zip/no-type-redefinitions.patch

20 lines
475 B
Diff

diff -uNr p7zip-17.03/C/hashes/hash.h p7zip-17.03.mod/C/hashes/hash.h
--- p7zip-17.03/C/hashes/hash.h 2020-12-28 15:10:01.000000000 +0200
+++ p7zip-17.03.mod/C/hashes/hash.h 2020-12-30 21:09:08.687899022 +0200
@@ -42,6 +42,7 @@
#include "../7zTypes.h"
+#ifndef __ANDROID__
#ifndef _UINT32_T_DECLARED
typedef UInt32 uint32_t;
#define _UINT32_T_DECLARED
@@ -51,6 +52,7 @@
typedef UInt64 uint64_t;
#define _UINT64_T_DECLARED
#endif
+#endif
//#include <stdint.h>