summaryrefslogtreecommitdiff
path: root/lib/config-win32.h
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2010-09-02 00:07:05 +0200
committerGuenter Knauf <lists@gknw.net>2010-09-02 00:07:05 +0200
commit3238ef5b69bf49455e0f6ff5ad35b6d0a30e9c58 (patch)
treea93f9c3af576bfe6dbb76b6c49342299bd025bfb /lib/config-win32.h
parentca10e28f06f168ec433d376ee8fd64a25b317f0f (diff)
downloadcurl-3238ef5b69bf49455e0f6ff5ad35b6d0a30e9c58.tar.gz
Added S_ISREG define for Win32.
Diffstat (limited to 'lib/config-win32.h')
-rw-r--r--lib/config-win32.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h
index 5ee76065d..24cb6e0dd 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -391,6 +391,11 @@
/* 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