From 483d2086a4dd1bd82febc0a83303311a94134857 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Thu, 10 Sep 2020 01:14:16 +0200
Subject: [PATCH] On Mingw use '/' as dir separator to avoid compile errors

This fixes the following error:
   transaction.c:12:10: fatal error: .\..._p.h: No such file or directory
---
 src/gwenhywfarapi.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gwenhywfarapi.h b/src/gwenhywfarapi.h
index 826d66e8..3b60b15f 100644
--- a/src/gwenhywfarapi.h
+++ b/src/gwenhywfarapi.h
@@ -90,8 +90,13 @@
 #endif
 
 #if GWENHYWFAR_SYS_IS_WINDOWS
+#ifdef __MINGW32__
+# define GWEN_DIR_SEPARATOR           '/'
+# define GWEN_DIR_SEPARATOR_S         "/"
+#else
 # define GWEN_DIR_SEPARATOR           '\\'
 # define GWEN_DIR_SEPARATOR_S         "\\"
+#endif
 # define GWEN_SEARCHPATH_SEPARATOR    ';'
 # define GWEN_SEARCHPATH_SEPARATOR_S  ";"
 #else
-- 
2.26.2

