Fixes for building on windows

This commit is contained in:
Justin Rajewski 2023-10-26 10:29:44 -06:00 committed by myrtle
parent 4a7e58a938
commit 1238b69d74
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@
#include <array> #include <array>
#include <vector> #include <vector>
#define NOMINMAX
#include "arch_api.h" #include "arch_api.h"
#include "base_clusterinfo.h" #include "base_clusterinfo.h"
#include "idstring.h" #include "idstring.h"

View File

@ -46,6 +46,7 @@
#include "version.h" #include "version.h"
#if defined(_WIN32) #if defined(_WIN32)
#define NOMINMAX
#include <io.h> #include <io.h>
#include <windows.h> #include <windows.h>
#elif defined(__APPLE__) #elif defined(__APPLE__)
@ -126,7 +127,7 @@ std::string proc_self_dirname()
std::string proc_self_dirname() std::string proc_self_dirname()
{ {
int i = 0; int i = 0;
#ifdef __MINGW32__ #ifdef _WIN32
char longpath[MAX_PATH + 1]; char longpath[MAX_PATH + 1];
char shortpath[MAX_PATH + 1]; char shortpath[MAX_PATH + 1];
#else #else