Merge branch 'jc/merge-refuse-new-root'
[gitweb.git] / compat / mingw.h
index 8c5bf5076bfe25ce5b12235c035cff95a4900f2c..c008694639a654e6a04e541af70e90a5fa4da9e0 100644 (file)
@@ -396,6 +396,12 @@ static inline char *mingw_find_last_dir_sep(const char *path)
                        ret = (char *)path;
        return ret;
 }
+static inline void convert_slashes(char *path)
+{
+       for (; *path; path++)
+               if (*path == '\\')
+                       *path = '/';
+}
 #define find_last_dir_sep mingw_find_last_dir_sep
 int mingw_offset_1st_component(const char *path);
 #define offset_1st_component mingw_offset_1st_component