Hash :
0234c186
Author :
Date :
2009-03-20T19:52:50
win32: Add <dirent.h> directory reading routines Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
#ifndef INCLUDE_dir_h__
#define INCLUDE_dir_h__
#include "common.h"
#ifndef GIT_WIN32
# include <dirent.h>
#endif
#ifdef GIT_WIN32
struct dirent {
int d_ino;
char d_name[261];
};
typedef struct {
HANDLE h;
WIN32_FIND_DATA f;
struct dirent entry;
char *dir;
int first;
} DIR;
extern DIR *opendir(const char *);
extern struct dirent *readdir(DIR *);
extern void rewinddir(DIR *);
extern int closedir(DIR *);
#endif
#endif /* INCLUDE_dir_h__ */