diff options
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h index e7dcba1dc..cc016c9cd 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -552,6 +552,11 @@ int netware_init(void); #define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE") #endif +/* Define S_ISREG if not defined by system headers, f.e. MSVC */ +#if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG) +#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) +#endif + /* * Include macros and defines that should only be processed once. */ |