mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
curl_version_info: add CURL_VERSION_THREADSAFE_INIT
This flag can be used to make sure that curl_global_init() is thread-safe. This can be useful for libraries that can't control what other dependencies are doing with Curl. Closes #8680
This commit is contained in:
parent
23af112f55
commit
2ed1012564
10 changed files with 141 additions and 4 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include "vssh/ssh.h"
|
||||
#include "quic.h"
|
||||
#include "curl_printf.h"
|
||||
#include "easy_lock.h"
|
||||
|
||||
#ifdef USE_ARES
|
||||
# if defined(CURL_STATICLIB) && !defined(CARES_STATICLIB) && \
|
||||
|
|
@ -450,6 +451,9 @@ static curl_version_info_data version_info = {
|
|||
#endif
|
||||
#if defined(USE_GSASL)
|
||||
| CURL_VERSION_GSASL
|
||||
#endif
|
||||
#if defined(GLOBAL_INIT_IS_THREADSAFE)
|
||||
| CURL_VERSION_THREADSAFE_INIT
|
||||
#endif
|
||||
,
|
||||
NULL, /* ssl_version */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue