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" #include "file.h"
#ifdef _WIN32 #ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX #define NOMINMAX
#endif
#include <Windows.h> #include <Windows.h>
#else #else
#include <fstream> #include <fstream>
#define FSTR(x) static_cast<std::fstream*>(x) #define FSTR(x) static_cast<std::fstream*>(x)
#endif #endif
namespace si { namespace si {