Code

Merge branch 'ef/maint-win-verify-path'
[git.git] / git-compat-util.h
index e0bb81ed8d0bd89f18b31b1c03d3e23744aea5a1..a75530df7b7865059a51f84eb6257962c4f863cd 100644 (file)
@@ -215,6 +215,10 @@ extern char *gitbasename(char *);
 #define is_dir_sep(c) ((c) == '/')
 #endif
 
+#ifndef find_last_dir_sep
+#define find_last_dir_sep(path) strrchr(path, '/')
+#endif
+
 #if __HP_cc >= 61000
 #define NORETURN __attribute__((noreturn))
 #define NORETURN_PTR