Commit 889038f6 authored by Sergei Nikulov's avatar Sergei Nikulov Committed by Daniel Stenberg
Browse files

setup.h: fixed for MS VC10 build

parent 907a9d25
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -610,11 +610,6 @@ int netware_init(void);
#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")
#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")
#endif
#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

/*
/*
 * Provide a mechanism to silence picky compilers, such as gcc 4.6+.
 * Provide a mechanism to silence picky compilers, such as gcc 4.6+.
 * Parameters should of course normally not be unused, but for example when
 * Parameters should of course normally not be unused, but for example when
@@ -668,4 +663,9 @@ int netware_init(void);
#  define SHUT_RDWR 0x02
#  define SHUT_RDWR 0x02
#endif
#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

#endif /* HEADER_CURL_SETUP_H */
#endif /* HEADER_CURL_SETUP_H */