Prevent libarchive from pulling in Windows.h

This commit is contained in:
Marcus Holland-Moritz 2023-06-22 10:13:25 +02:00
parent ad0b85d795
commit add6e3da07

View File

@ -25,6 +25,12 @@
#include <mutex>
#include <thread>
// This is required to avoid Windows.h being pulled in by libarchive
// and polluting our environment with all sorts of shit.
#if _WIN32
#include <folly/portability/Windows.h>
#endif
#include <archive.h>
#include <archive_entry.h>