003-compile_fixes.patch 600 B

123456789101112131415161718192021222324
  1. --- a/CPP/7zip/Common/FileStreams.h
  2. +++ b/CPP/7zip/Common/FileStreams.h
  3. @@ -72,6 +72,7 @@ class COutFileStream:
  4. public IOutStream,
  5. public CMyUnknownImp
  6. {
  7. +public:
  8. #ifdef USE_WIN_FILE
  9. NWindows::NFile::NIO::COutFile File;
  10. #else
  11. --- a/CPP/Common/MyWindows.h
  12. +++ b/CPP/Common/MyWindows.h
  13. @@ -101,8 +101,11 @@ typedef LONG SCODE;
  14. #ifdef __cplusplus
  15. +#ifndef INITGUID
  16. +#define INITGUID
  17. DEFINE_GUID(IID_IUnknown,
  18. 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);
  19. +#endif
  20. struct IUnknown
  21. {
  22. STDMETHOD(QueryInterface) (REFIID iid, void **outObject) PURE;