Skip to content

Commit 9afcccf

Browse files
committed
Fix Issue #948
1 parent e5bf696 commit 9afcccf

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
@@ -120,7 +120,13 @@ namespace tfel::system {
120120
}
121121
#endif /* (defined _WIN32) || (defined _WIN64) */
122122

123-
char dirSeparator() { return '/'; } // end of dirSeparator
123+
char dirSeparator() {
124+
#if (defined _WIN32 || defined _WIN64) && (!defined __CYGWIN__)
125+
return '\\';
126+
#else
127+
return '/';
128+
#endif
129+
} // end of dirSeparator
124130

125131
const std::string& dirStringSeparator() {
126132
static std::string s(1u, dirSeparator());

0 commit comments

Comments
 (0)