From 72f72d64a422d6628c4796f5c0bf2e508f134214 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Wed, 4 May 2011 16:05:14 +0900 Subject: Adding upstream version 0.5.1 --- local.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 local.h (limited to 'local.h') diff --git a/local.h b/local.h new file mode 100644 index 0000000..79a6a28 --- /dev/null +++ b/local.h @@ -0,0 +1,45 @@ +/* $Id: local.h,v 1.3 2001/11/20 17:49:23 ukai Exp $ */ +/* + * w3m local.h + */ + +#ifndef LOCAL_H +#define LOCAL_H + +#include +#ifdef HAVE_DIRENT_H +#include +typedef struct dirent Directory; +#else /* not HAVE_DIRENT_H */ +#include +typedef struct direct Directory; +#endif /* not HAVE_DIRENT_H */ +#include + +#ifndef S_IFMT +#define S_IFMT 0170000 +#endif /* not S_IFMT */ +#ifndef S_IFREG +#define S_IFREG 0100000 +#endif /* not S_IFREG */ + +#define NOT_REGULAR(m) (((m) & S_IFMT) != S_IFREG) +#define IS_DIRECTORY(m) (((m) & S_IFMT) == S_IFDIR) + +#ifndef S_ISDIR +#ifndef S_IFDIR +#define S_IFDIR 0040000 +#endif /* not S_IFDIR */ +#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#endif /* not S_ISDIR */ + +#ifdef HAVE_READLINK +#ifndef S_IFLNK +#define S_IFLNK 0120000 +#endif /* not S_IFLNK */ +#ifndef S_ISLNK +#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) +#endif /* not S_ISLNK */ +#endif /* not HAVE_READLINK */ + +#endif /* not LOCAL_H */ -- cgit v1.2.3