Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
core: log offset pack data accesses happened
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index e0bb81ed8d0bd89f18b31b1c03d3e23744aea5a1..a75530df7b7865059a51f84eb6257962c4f863cd 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