Fix building of libweaver under MSYS2

This commit is contained in:
Sadie 2024-10-29 19:35:24 -07:00
parent 76dab7dfd9
commit a41a82feab

View file

@ -1,11 +1,18 @@
#include "file.h"
#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#else
#include <fstream>
#define FSTR(x) static_cast<std::fstream*>(x)
#endif
namespace si {