Get the latest tech news
I ported pigz from Unix to Windows
Pigz was clearly written with Unix in mind, with no thought given to cross-platform portability. Thankfully, it’s a relatively simple, command-line program that sticks to using standard C library.
There are few functions that pigz uses that are present in Visual Studio’s C library, but under a different name (e.g. stat is_stat, fstat is_fstat etc.). As far as porting goes, this one was easy thanks to existing efforts that created compatibility shims for the hard parts. Premake is an interesting tool that allows to save time creating and maintaining Visual Studio projects.
Or read this on Hacker News