Hash :
2a18a792
Author :
Date :
2010-12-22T22:43:39
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
#ifndef INCLUDE_dir_h__
#define INCLUDE_dir_h__
#include "common.h"
#ifndef GIT_WIN32
# include <dirent.h>
#endif
#ifdef GIT_WIN32
struct git__dirent {
int d_ino;
char d_name[261];
};
typedef struct {
HANDLE h;
WIN32_FIND_DATA f;
struct git__dirent entry;
char *dir;
int first;
} git__DIR;
GIT_EXTERN(git__DIR *) git__opendir(const char *);
GIT_EXTERN(struct git__dirent *) git__readdir(git__DIR *);
GIT_EXTERN(void) git__rewinddir(git__DIR *);
GIT_EXTERN(int) git__closedir(git__DIR *);
# ifndef GIT__WIN32_NO_WRAP_DIR
# define dirent git__dirent
# define DIR git__DIR
# define opendir git__opendir
# define readdir git__readdir
# define rewinddir git__rewinddir
# define closedir git__closedir
# endif
#endif
#endif /* INCLUDE_dir_h__ */