Skip to content
Snippets Groups Projects
Commit e8c3bb45 authored by Gisle Vanem's avatar Gisle Vanem
Browse files

Fix for building with MS Visual-C and single-threaded

runtime libs.
parent 4ec55a96
No related merge requests found
...@@ -88,6 +88,10 @@ ...@@ -88,6 +88,10 @@
/* The last #include file should be: */ /* The last #include file should be: */
#include "memdebug.h" #include "memdebug.h"
#if defined(_MSC_VER) && defined(CURL_NO__BEGINTHREADEX)
#pragma message ("No _beginthreadex() available in this RTL")
#endif
/*********************************************************************** /***********************************************************************
* Only for Windows threaded name resolves builds * Only for Windows threaded name resolves builds
**********************************************************************/ **********************************************************************/
......
...@@ -262,6 +262,14 @@ typedef int curl_socket_t; ...@@ -262,6 +262,14 @@ typedef int curl_socket_t;
#endif #endif
#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 #ifdef mpeix
#define IOCTL_3_ARGS #define IOCTL_3_ARGS
#endif #endif
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment