aboutsummaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2005-10-02 16:52:07 +0000
committerGisle Vanem <gvanem@broadpark.no>2005-10-02 16:52:07 +0000
commite8c3bb45baa1f7b8c17d82ca7a5b0944d57b6a0d (patch)
tree50bb66bd62c1cf6b076a572b70d4f79db4afbd9d /lib/setup.h
parent4ec55a964d25b5bcba73949ed62b7a481996e3dd (diff)
Fix for building with MS Visual-C and single-threaded
runtime libs.
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 201e783d5..4b3a50765 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -262,6 +262,14 @@ typedef int curl_socket_t;
#endif
#endif
+/* "cl -ML" or "cl -MLd" implies a single-threaded runtime library where
+ _beginthreadex() is not available */
+#if defined(_MSC_VER) && !defined(_MT) && !defined(USE_ARES)
+#undef USE_THREADING_GETADDRINFO
+#undef USE_THREADING_GETHOSTBYNAME
+#define CURL_NO__BEGINTHREADEX
+#endif
+
#ifdef mpeix
#define IOCTL_3_ARGS
#endif