]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Added S_ISREG define for Win32.
authorGuenter Knauf <lists@gknw.net>
Wed, 1 Sep 2010 22:07:05 +0000 (00:07 +0200)
committerGuenter Knauf <lists@gknw.net>
Wed, 1 Sep 2010 22:07:05 +0000 (00:07 +0200)
lib/config-win32.h
src/config-win32.h

index 5ee76065d87da188df5c9deb43a9426bbbef2c7b..24cb6e0ddb9e78b8289fffaa944a72a24f204e7c 100644 (file)
 /* Windows should not have HAVE_GMTIME_R defined */
 /* #undef HAVE_GMTIME_R */
 
+/* Define S_ISREG if not defined by system headers */
+#ifndef S_ISREG
+#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#endif
+
 /* Define if the compiler supports C99 variadic macro style. */
 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
 #define HAVE_VARIADIC_MACROS_C99 1
index 10a5eaf175243a6c69e1b69ff580880c20fd44dc..0104edb808081983470a1ad19117529bb2745f5a 100644 (file)
 /* Windows should not have HAVE_GMTIME_R defined */
 /* #undef HAVE_GMTIME_R */
 
+/* Define S_ISREG if not defined by system headers */                                                                               
+#ifndef S_ISREG
+#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#endif
+
 /* Define if the compiler supports C99 variadic macro style. */
 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
 #define HAVE_VARIADIC_MACROS_C99 1