]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
win32: define S_ISREG if it not already defined.
authorMark Andrews <marka@isc.org>
Sat, 12 Apr 2003 04:57:17 +0000 (04:57 +0000)
committerMark Andrews <marka@isc.org>
Sat, 12 Apr 2003 04:57:17 +0000 (04:57 +0000)
lib/isc/win32/include/isc/stat.h

index 04c92797553ef2fa9f5f9d043fd7407ff4033a4a..6517f519dc84630f8b3c07ffd2ed6f9dddc41f20 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: stat.h,v 1.3 2001/07/09 21:06:30 gson Exp $ */
+/* $Id: stat.h,v 1.4 2003/04/12 04:57:17 marka Exp $ */
 
 #ifndef ISC_STAT_H
 #define ISC_STAT_H 1
 #define S_IWOTH _S_IWRITE      /* Other write permission */
 
 #ifndef S_ISDIR
-# define S_ISDIR(m)    ((m & S_IFMT) == S_IFDIR)
+# define S_ISDIR(m)    (((m) & S_IFMT) == S_IFDIR)
+#endif
+#ifndef S_ISREG
+# define S_ISREG(m)    (((m) & S_IFMT) == S_IFREG)
 #endif
 
 #endif /* ISC_STAT_H */