Open markwright opened 1 year ago
I used the same patch on the OpenHarmony system. It works very well. You should submit a PR to fix this error.
-#ifndef _UINT64_T_DECLARED -typedef UInt64 uint64_t; -#define _UINT64_T_DECLARED -#endif
I can submit a pull request if you like.
What makes you think that undefining it will help to compile it? UInt64 is non-standard definition. I for example don't have it in /usr/include/stdint.h and if would remove it from 7zTypes.h I wouldn't be able to compile it. Ask Clang team why did they add it to standard header.
From: [Bug 901467] app-arch/p7zip-17.05: Fails to compile with libcxx https://bugs.gentoo.org/show_bug.cgi?id=901467
The clang 16.0.1 libcxx compiler error is:
It compiles successfully with clang 16.0.1 libcxx and with gcc 12.2.1_p20230304 p13 with this patch (by me):
I can submit a pull request if you like.