diff options
author | M.Dinslage | 2021-01-30 12:51:42 +0100 |
---|---|---|
committer | Robby Workman | 2021-04-18 06:52:21 +0200 |
commit | c3483321438120b140eda63da373f43b7fdbaa49 (patch) | |
tree | 01a91d98c232e3f711bf1345aeed7a8438c5d6b4 /system/p7zip/gcc10.patch | |
parent | 614b01391423f0438ab3e6fb6b889a0542df592d (diff) | |
download | slackbuilds-c3483321438120b140eda63da373f43b7fdbaa49.tar.gz |
system/p7zip: Patch for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/p7zip/gcc10.patch')
-rw-r--r-- | system/p7zip/gcc10.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/system/p7zip/gcc10.patch b/system/p7zip/gcc10.patch new file mode 100644 index 0000000000..d9571cc230 --- /dev/null +++ b/system/p7zip/gcc10.patch @@ -0,0 +1,22 @@ +https://sourceforge.net/p/p7zip/bugs/226/ + +--- a/CPP/Windows/ErrorMsg.cpp 2020-05-28 00:35:02.729896917 +0200 ++++ b/CPP/Windows/ErrorMsg.cpp 2020-05-28 00:40:01.676442629 +0200 +@@ -13,7 +13,7 @@ + const char * txt = 0; + AString msg; + +- switch(errorCode) { ++ switch(HRESULT(errorCode)) { + case ERROR_NO_MORE_FILES : txt = "No more files"; break ; + case E_NOTIMPL : txt = "E_NOTIMPL"; break ; + case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ; +@@ -43,7 +43,7 @@ + const char * txt = 0; + AString msg; + +- switch(messageID) { ++ switch(HRESULT(messageID)) { + case ERROR_NO_MORE_FILES : txt = "No more files"; break ; + case E_NOTIMPL : txt = "E_NOTIMPL"; break ; + case E_NOINTERFACE : txt = "E_NOINTERFACE"; break ; |