remote-hg: remove extra check
[git/gitweb.git] / compat / cygwin.h
blobc04965a2e0e259d3bded51730f699bde5c4262e6
1 #include <sys/types.h>
2 #include <sys/stat.h>
4 typedef int (*stat_fn_t)(const char*, struct stat*);
5 extern stat_fn_t cygwin_stat_fn;
6 extern stat_fn_t cygwin_lstat_fn;
7 int cygwin_get_st_mode_bits(const char *path, int *mode);
9 #define get_st_mode_bits(p,m) cygwin_get_st_mode_bits((p),(m))
10 #ifndef CYGWIN_C
11 /* cygwin.c needs the original lstat() */
12 #define stat(path, buf) (*cygwin_stat_fn)(path, buf)
13 #define lstat(path, buf) (*cygwin_lstat_fn)(path, buf)
14 #endif