Added dummy classification macros for the remaining targets - even for those that don't have the field 'd_type'.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5744 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -84,6 +84,11 @@ struct dirent {
|
|||||||
char d_name[13]; /* 8.3 + trailing 0 */
|
char d_name[13]; /* 8.3 + trailing 0 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define _DE_ISREG(t) (1)
|
||||||
|
#define _DE_ISDIR(t) (0)
|
||||||
|
#define _DE_ISLBL(t) (0)
|
||||||
|
#define _DE_ISLNK(t) (0)
|
||||||
|
|
||||||
#elif defined(__CBM__)
|
#elif defined(__CBM__)
|
||||||
|
|
||||||
struct dirent {
|
struct dirent {
|
||||||
@@ -117,12 +122,22 @@ struct dirent {
|
|||||||
extern struct dirent FileEntry;
|
extern struct dirent FileEntry;
|
||||||
#pragma zpsym ("FileEntry");
|
#pragma zpsym ("FileEntry");
|
||||||
|
|
||||||
|
#define _DE_ISREG(t) (1)
|
||||||
|
#define _DE_ISDIR(t) (0)
|
||||||
|
#define _DE_ISLBL(t) (0)
|
||||||
|
#define _DE_ISLNK(t) (0)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
struct dirent {
|
struct dirent {
|
||||||
char d_name[1];
|
char d_name[1];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define _DE_ISREG(t) (1)
|
||||||
|
#define _DE_ISDIR(t) (0)
|
||||||
|
#define _DE_ISLBL(t) (0)
|
||||||
|
#define _DE_ISLNK(t) (0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user