diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2008-10-09 10:24:14 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-10-09 10:24:14 -0700 |
commit | ed187bd5936267744aa579ab1a33f0b07862a74b (patch) | |
tree | 69d7bcb71557ef35d8fc9300d8d0cf986133cd1e /compat/cygwin.h | |
parent | Merge branch 'lt/time-reject-fractional-seconds' (diff) | |
parent | cygwin: Use native Win32 API for stat (diff) | |
download | tgif-ed187bd5936267744aa579ab1a33f0b07862a74b.tar.xz |
Merge branch 'dp/cywginstat'
* dp/cywginstat:
cygwin: Use native Win32 API for stat
mingw: move common functionality to win32.h
add have_git_dir() function
Diffstat (limited to 'compat/cygwin.h')
-rw-r--r-- | compat/cygwin.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/cygwin.h b/compat/cygwin.h new file mode 100644 index 0000000000..a3229f5b4f --- /dev/null +++ b/compat/cygwin.h @@ -0,0 +1,9 @@ +#include <sys/types.h> +#include <sys/stat.h> + +typedef int (*stat_fn_t)(const char*, struct stat*); +extern stat_fn_t cygwin_stat_fn; +extern stat_fn_t cygwin_lstat_fn; + +#define stat(path, buf) (*cygwin_stat_fn)(path, buf) +#define lstat(path, buf) (*cygwin_lstat_fn)(path, buf) |