From 15546f8880daec80fd1e10f5c8d21f28195fbb07 Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Sun, 24 Jun 2012 19:49:15 +0000 Subject: [PATCH] Added Apple II classification macros for file types from struct dirent. git-svn-id: svn://svn.cc65.org/cc65/trunk@5738 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/dirent.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/dirent.h b/include/dirent.h index 63a96ea82..2a4f42f17 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -73,6 +73,11 @@ struct dirent { } d_mtime; }; +#define _DE_ISREG(t) ((t) != $0F) +#define _DE_ISDIR(t) ((t) == $0F) +#define _DE_ISLBL(t) (0) +#define _DE_ISLNK(t) (0) + #elif defined(__ATARI__) struct dirent { -- 2.39.5