Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'dz/connect-error-report'
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 9925cf0edfa50da6e038b90a140cfab49c92de10..ddfbf771492c599e7a6ca04bb39962cf4c7a784c 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-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