Fixes for building on windows
This commit is contained in:
parent
4a7e58a938
commit
1238b69d74
@ -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"
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user