From 8fca05322683496b13ec46f80e6efbbf26a92d11 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 20 May 2020 19:53:55 +0200 Subject: [PATCH] path_open: assigning an fstream works on the mac too --- src/utils/pathut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pathut.cpp b/src/utils/pathut.cpp index 34ca05ef..0f01c015 100644 --- a/src/utils/pathut.cpp +++ b/src/utils/pathut.cpp @@ -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)