mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-13 15:43:34 +00:00
Fixes for building on windows
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <array>
|
||||
#include <vector>
|
||||
|
||||
#define NOMINMAX
|
||||
#include "arch_api.h"
|
||||
#include "base_clusterinfo.h"
|
||||
#include "idstring.h"
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
#include "version.h"
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define NOMINMAX
|
||||
#include <io.h>
|
||||
#include <windows.h>
|
||||
#elif defined(__APPLE__)
|
||||
@@ -126,7 +127,7 @@ std::string proc_self_dirname()
|
||||
std::string proc_self_dirname()
|
||||
{
|
||||
int i = 0;
|
||||
#ifdef __MINGW32__
|
||||
#ifdef _WIN32
|
||||
char longpath[MAX_PATH + 1];
|
||||
char shortpath[MAX_PATH + 1];
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user