We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5bf696 commit 9afcccfCopy full SHA for 9afcccf
src/System/System.cxx
@@ -120,7 +120,13 @@ namespace tfel::system {
120
}
121
#endif /* (defined _WIN32) || (defined _WIN64) */
122
123
- char dirSeparator() { return '/'; } // end of dirSeparator
+ char dirSeparator() {
124
+#if (defined _WIN32 || defined _WIN64) && (!defined __CYGWIN__)
125
+ return '\\';
126
+#else
127
+ return '/';
128
+#endif
129
+ } // end of dirSeparator
130
131
const std::string& dirStringSeparator() {
132
static std::string s(1u, dirSeparator());
0 commit comments