1
0
Fork 0
forked from len0rd/rockbox

added win32 simulator compability

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@303 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Felix Arends 2002-04-28 19:29:57 +00:00
parent 98ed5ed17a
commit 0196c0c45b
2 changed files with 20 additions and 5 deletions

View file

@ -20,16 +20,26 @@
#ifndef _DIR_H_
#define _DIR_H_
typdef struct {
int offset;
} DIR;
struct dirent {
unsigned char d_name[256];
int attribute;
int size;
};
#ifndef SIMULATOR
typedef struct {
int offset;
} DIR;
#else // SIMULATOR
#ifdef _WIN32
typedef struct DIRtag
{
struct dirent fd;
intptr_t handle;
} DIR;
#endif // _WIN32
#endif // SIMULATOR
extern DIR* opendir(char* name);
extern int closedir(DIR* dir);