Refactor skipping DOS drive prefixes
[gitweb.git] / git-compat-util.h
index 0feeae298340afbe22276ce595de4a6cba397926..38397d7afb76a6842453876c4eb00d7c11bcde34 100644 (file)
@@ -335,6 +335,14 @@ static inline int git_has_dos_drive_prefix(const char *path)
 #define has_dos_drive_prefix git_has_dos_drive_prefix
 #endif
 
+#ifndef skip_dos_drive_prefix
+static inline int git_skip_dos_drive_prefix(char **path)
+{
+       return 0;
+}
+#define skip_dos_drive_prefix git_skip_dos_drive_prefix
+#endif
+
 #ifndef is_dir_sep
 static inline int git_is_dir_sep(int c)
 {