path_open: assigning an fstream works on the mac too

This commit is contained in:
Jean-Francois Dockes 2020-05-20 19:53:55 +02:00
parent e61ec4b7af
commit 8fca053226

View File

@ -836,7 +836,7 @@ bool path_makepath(const string& ipath, int mode)
return true;
}
#if !defined(__GNUC__) || __GNUC__ > 4
#if !defined(__GNUC__) || __GNUC__ > 4 || defined(__clang__)
// Not sure what g++ version supports fstream assignment but 4.9
// (jessie) certainly does not
std::fstream path_open(const std::string& path, int mode)