From e3022d83f7bc8f62240ddff11c0fb42272b6431f Mon Sep 17 00:00:00 2001 From: Eric J Korpela Date: Wed, 9 Dec 2015 11:22:28 -0800 Subject: [PATCH] Fixes for MINGW/DevC++ builds --- lib/filesys.cpp | 2 +- lib/parse.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filesys.cpp b/lib/filesys.cpp index 6535a80433..8dd1967c0a 100644 --- a/lib/filesys.cpp +++ b/lib/filesys.cpp @@ -26,7 +26,7 @@ #include #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__MINGW32__) #define getcwd _getcwd #endif diff --git a/lib/parse.cpp b/lib/parse.cpp index a79365e232..24a983794c 100644 --- a/lib/parse.cpp +++ b/lib/parse.cpp @@ -39,7 +39,7 @@ #endif #endif -#ifdef _MSC_VER +#if !defined(HAVE_STRDUP) && defined(HAVE__STRDUP) #define strdup _strdup #endif