Skip to content

Commit 9aeb9a9

Browse files
committed
Fix Issue #948
1 parent aaedabe commit 9aeb9a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/System/System.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ namespace tfel {
115115
}
116116
#endif /* (defined _WIN32) || (defined _WIN64) */
117117

118-
char dirSeparator() { return '/'; } // end of systemCall::dirSeparator
118+
char dirSeparator() {
119+
#if (defined _WIN32 || defined _WIN64) && (!defined __CYGWIN__)
120+
return '\\';
121+
#else
122+
return '/';
123+
#endif
124+
} // end of dirSeparator
119125

120126
const std::string& dirStringSeparator() {
121127
using namespace std;

0 commit comments

Comments
 (0)