Revision: 77417
http://sourceforge.net/p/brlcad/code/77417
Author: brlcad
Date: 2020-10-13 19:39:29 +0000 (Tue, 13 Oct 2020)
Log Message:
-----------
add all the stat wrappers for windows comapt
Modified Paths:
--------------
brlcad/trunk/include/bio.h
Modified: brlcad/trunk/include/bio.h
===================================================================
--- brlcad/trunk/include/bio.h 2020-10-13 19:27:37 UTC (rev 77416)
+++ brlcad/trunk/include/bio.h 2020-10-13 19:39:29 UTC (rev 77417)
@@ -91,9 +91,27 @@
/* the S_IS* macros should replace the S_IF*'s
already defined in C99 compliant compilers
this is the work-around for older compilers */
+#ifndef S_ISBLK
+# define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
+#endif
+#ifndef S_ISCHR
+# define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR)
+#endif
#ifndef S_ISDIR
-# define S_ISDIR(_st_mode) (((_st_mode) & S_IFMT) == S_IFDIR)
+# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif
+#ifndef S_ISFIFO
+# define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO)
+#endif
+#ifndef S_ISLNK
+# define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
+#endif
+#ifndef S_ISREG
+# define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
+#endif
+#ifndef S_ISSOCK
+# define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK)
+#endif
#endif /* BIO_H */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits