comparison mupdf-source/thirdparty/curl/lib/vtls/polarssl_threadlock.h @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 #ifndef HEADER_CURL_POLARSSL_THREADLOCK_H
2 #define HEADER_CURL_POLARSSL_THREADLOCK_H
3 /***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 2013-2015, Daniel Stenberg, <daniel@haxx.se>, et al.
11 * Copyright (C) 2010, Hoi-Ho Chan, <hoiho.chan@gmail.com>
12 *
13 * This software is licensed as described in the file COPYING, which
14 * you should have received as part of this distribution. The terms
15 * are also available at https://curl.haxx.se/docs/copyright.html.
16 *
17 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
18 * copies of the Software, and permit persons to whom the Software is
19 * furnished to do so, under the terms of the COPYING file.
20 *
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
23 *
24 ***************************************************************************/
25 #include "curl_setup.h"
26
27 #if (defined USE_POLARSSL) || (defined USE_MBEDTLS)
28
29 #if (defined(USE_THREADS_POSIX) && defined(HAVE_PTHREAD_H)) || \
30 (defined(USE_THREADS_WIN32) && defined(HAVE_PROCESS_H))
31
32 int Curl_polarsslthreadlock_thread_setup(void);
33 int Curl_polarsslthreadlock_thread_cleanup(void);
34 int Curl_polarsslthreadlock_lock_function(int n);
35 int Curl_polarsslthreadlock_unlock_function(int n);
36
37 #else
38
39 #define Curl_polarsslthreadlock_thread_setup() 1
40 #define Curl_polarsslthreadlock_thread_cleanup() 1
41 #define Curl_polarsslthreadlock_lock_function(x) 1
42 #define Curl_polarsslthreadlock_unlock_function(x) 1
43
44 #endif /* USE_THREADS_POSIX || USE_THREADS_WIN32 */
45
46 #endif /* USE_POLARSSL */
47
48 #endif /* HEADER_CURL_POLARSSL_THREADLOCK_H */