]> git.ipfire.org Git - thirdparty/zstd.git/commit
[pzstd] Fixes for Windows build
authorNick Terrell <terrelln@fb.com>
Mon, 19 Dec 2022 20:23:29 +0000 (12:23 -0800)
committerNick Terrell <nickrterrell@gmail.com>
Mon, 19 Dec 2022 22:09:43 +0000 (14:09 -0800)
commite9797b5dc5c4a703fd13cf2e86d278b275825bb3
tree780bc0f90e2a4d1dd42f0a62d5f1adf9b327f165
parent67cd24b25b997f6e9f3e1aac7e38579b932d9d47
[pzstd] Fixes for Windows build

* Add `Portability.h` to fix min/max issues.
* Fix conversion warnings
* Assert that windowLog <= 23, which is currently always the case.
  This could be loosened, but we aren't looking to add new functionality.

Fixes on top of PR #3375 by @eli-schwartz, which added Windows CI for contrib & programs.
contrib/pzstd/Pzstd.cpp
contrib/pzstd/utils/FileSystem.h
contrib/pzstd/utils/Portability.h [new file with mode: 0644]
contrib/pzstd/utils/Range.h