From e0664f78870addf55a035fa6fd244c2149c98e6f Mon Sep 17 00:00:00 2001 From: Alexander Skovpen Date: Thu, 12 Jul 2018 08:07:07 +0300 Subject: [PATCH] Fix a bug introduced in the previous commit --- goldlib/gall/gdirposx.cpp | 4 ++++ 1 file changed, 4 insertions(+) mode change 100755 => 100644 goldlib/gall/gdirposx.cpp diff --git a/goldlib/gall/gdirposx.cpp b/goldlib/gall/gdirposx.cpp old mode 100755 new mode 100644 index f2fd731..9135d5c --- a/goldlib/gall/gdirposx.cpp +++ b/goldlib/gall/gdirposx.cpp @@ -126,7 +126,11 @@ void gposixdir::cd(const char *name, bool relative) else ndirname += "/*"; struct _finddata_t de; +#if defined(_MSC_VER) && _MSC_VER>1800 intptr_t d = _findfirst(ndirname.c_str(), &de); +#else + long d = _findfirst(ndirname.c_str(), &de); +#endif if(d == -1) { if(is_dir(dirname)) ok = true;