repo.or.cz
/
libgit2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix some "signed/unsigned mismatch" (msvc) compiler warnings
[libgit2.git]
/
src
/
dir.h
blob
62ee0b89958479ae19eb68f18bb23de238a6a2f0
1
#ifndef INCLUDE_dir_h__
2
#define INCLUDE_dir_h__
3
4
#include
"common.h"
5
6
#ifndef GIT_WIN32
7
# include <dirent.h>
8
#endif
9
10
#ifdef GIT_WIN32
11
12
struct
dirent
{
13
int
d_ino
;
14
char
d_name
[
261
];
15
};
16
17
typedef
struct
{
18
HANDLE h
;
19
WIN32_FIND_DATA f
;
20
struct
dirent entry
;
21
char
*
dir
;
22
int
first
;
23
}
DIR
;
24
25
extern
DIR
*
opendir
(
const char
*);
26
extern
struct
dirent
*
readdir
(
DIR
*);
27
extern
void
rewinddir
(
DIR
*);
28
extern
int
closedir
(
DIR
*);
29
30
#endif
31
32
#endif
/* INCLUDE_dir_h__ */