summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorRomain Geissler <romain.geissler@gmail.com>2011-06-03 19:26:45 +0200
committerRomain Geissler <romain.geissler@gmail.com>2011-06-03 19:26:45 +0200
commit04fdc10d3581fb58adc2a3a375fdbb5d57774027 (patch)
tree8b2541ae9f1edd1e2e7b89c09fb1c3d2238ae6a5 /src/fileops.h
parent1e9b7a09ff3d16c3d7a132cfaacb9d68b253e924 (diff)
downloadlibgit2-04fdc10d3581fb58adc2a3a375fdbb5d57774027.tar.gz
Fileops:retrieve_path_root_offset is now named gitfo_retrieve_path_root_offset (like other public functions). Added platform specific directory separator definition.
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/fileops.h b/src/fileops.h
index d0381b675..0334bb176 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -12,6 +12,14 @@
#include <fcntl.h>
#include <time.h>
+#define GIT_PATH_LIST_SEPARATOR ':'
+
+#ifdef GIT__WIN32
+#define GIT_PLATFORM_PATH_SEP '/'
+#else
+#define GIT_PLATFORM_PATH_SEP '\\'
+#endif
+
#ifdef GIT_WIN32
GIT_INLINE(int) link(const char *GIT_UNUSED(old), const char *GIT_UNUSED(new))
{
@@ -187,5 +195,6 @@ int gitfo_prettify_dir_path(char *buffer_out, size_t size, const char *path);
*/
int gitfo_prettify_file_path(char *buffer_out, size_t size, const char *path);
-int retrieve_path_root_offset(const char *path);
+int gitfo_retrieve_path_root_offset(const char *path);
+
#endif /* INCLUDE_fileops_h__ */