Commit 697a2ddb authored by Christian Heimes's avatar Christian Heimes

Fix a typo in S_ISDIR, S_ISCHR, S_ISBLK and S_ISREG.

Add extra braces to S_IS*() macros
parent 4dfca2de
...@@ -87,31 +87,31 @@ typedef unsigned short mode_t; ...@@ -87,31 +87,31 @@ typedef unsigned short mode_t;
/* S_ISXXX() */ /* S_ISXXX() */
#ifndef S_ISDIR #ifndef S_ISDIR
# define S_ISDIR(mode) ((mode) & S_IFMT) == S_IDIR # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif #endif
#ifndef S_ISCHR #ifndef S_ISCHR
# define S_ISCHR(mode) ((mode) & S_IFMT) == S_ICHR # define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
#endif #endif
#ifndef S_ISBLK #ifndef S_ISBLK
# define S_ISBLK(mode) ((mode) & S_IFMT) == S_IBLK # define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
#endif #endif
#ifndef S_ISREG #ifndef S_ISREG
# define S_ISREG(mode) ((mode) & S_IFMT) == S_IREG # define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
#endif #endif
#ifndef S_ISFIFO #ifndef S_ISFIFO
# define S_ISFIFO(mode) ((mode) & S_IFMT) == S_IFIFO # define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO)
#endif #endif
#ifndef S_ISLNK #ifndef S_ISLNK
# define S_ISLNK(mode) ((mode) & S_IFMT) == S_IFLNK # define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
#endif #endif
#ifndef S_ISSOCK #ifndef S_ISSOCK
# define S_ISSOCK(mode) ((mode) & S_IFMT) == S_IFSOCK # define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
#endif #endif
#ifndef S_ISDOOR #ifndef S_ISDOOR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment