File fix-windows-build-1.patch of Package mingw64-opensp
--- a/sx/XmlOutputEventHandler.cxx 2016-10-18 09:37:23.608630352 +0000
+++ b/sx/XmlOutputEventHandler.cxx 2016-10-18 09:41:48.119841058 +0000
@@ -22,7 +22,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(_WIN32)
#include <libgen.h>
#include <sys/param.h>
#include <unistd.h>
@@ -1469,7 +1469,7 @@
*pp = '/';
}
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(_WIN32)
struct stat statbuf;
pp = strrchr(path, '/');
@@ -1649,7 +1649,7 @@
}
#endif
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(_WIN32)
char* dirname(const char* path)
{
static char buffer[MAXPATHLEN];