Skip to content

Commit b076cad

Browse files
committed
Fix Issue #948
1 parent 58cd4ca commit b076cad

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
@@ -123,7 +123,13 @@ namespace tfel {
123123
}
124124
#endif /* (defined _WIN32) || (defined _WIN64) */
125125

126-
char dirSeparator() { return '/'; } // end of dirSeparator
126+
char dirSeparator() {
127+
#if (defined _WIN32 || defined _WIN64) && (!defined __CYGWIN__)
128+
return '\\';
129+
#else
130+
return '/';
131+
#endif
132+
} // end of dirSeparator
127133

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

0 commit comments

Comments
 (0)