Windows: Treat Windows style path names.
[gitweb.git] / compat / mingw.h
index 22aae0077ef1a78fc54abdc1d0a04e3db23745a6..a954014ff2a815a931fcb968308aa11739b544c1 100644 (file)
@@ -133,8 +133,17 @@ struct passwd *getpwuid(int uid);
 int setitimer(int type, struct itimerval *in, struct itimerval *out);
 int sigaction(int sig, struct sigaction *in, struct sigaction *out);
 
+/*
+ * replacements of existing functions
+ */
+
+char *mingw_getcwd(char *pointer, int len);
+#define getcwd mingw_getcwd
+
 /*
  * git specific compatibility
  */
 
+#define has_dos_drive_prefix(path) (isalpha(*(path)) && (path)[1] == ':')
+#define is_dir_sep(c) ((c) == '/' || (c) == '\\')
 #define PATH_SEP ';'