blob: f2ee202945a930e7f0d5c56aeed7aa352f798ccf (
plain)
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
|
#ifndef _FILESYSTEM_H_
#define _FILESYSTEM_H_
#ifdef _MSC_VER
#include <io.h>
struct _KWDIR
{
#if _MSC_VER < 1300
long SrchHandle;
#else
intptr_t SrchHandle;
#endif
struct _finddata_t Entry; // data of current file
int EOD; //end of directory
};
#ifndef MAXPATHLEN
#define MAXPATHLEN _MAX_PATH
#endif
typedef struct _KWDIRENTRY
{
char d_name[MAXPATHLEN];
}kwDirEntry;
typedef struct _KWDIR kwDirectory;
kwDirectory * kwOpenDir(const char* name);
kwDirEntry * kwReadDir(kwDirectory * dir);
int kwCloseDir(kwDirectory * dir);
#else
#endif //MSC
#endif
|