summaryrefslogtreecommitdiff
path: root/libca-certificates-curl/libca-certificates-curl/export.h
blob: cb410a23ca2e24c854227ef9c00b5ca516ec6489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* file      : libca-certificates-curl/export.h -*- C -*-
 * license   : Mozilla Public License 2.0; see accompanying LICENSE file
 */

#pragma once

#if defined(LIBCA_CERTIFICATES_CURL_STATIC)         /* Using static. */
#  define LIBCA_CERTIFICATES_CURL_SYMEXPORT
#elif defined(LIBCA_CERTIFICATES_CURL_STATIC_BUILD) /* Building static. */
#  define LIBCA_CERTIFICATES_CURL_SYMEXPORT
#elif defined(LIBCA_CERTIFICATES_CURL_SHARED)       /* Using shared. */
#  ifdef _WIN32
#    define LIBCA_CERTIFICATES_CURL_SYMEXPORT __declspec(dllimport)
#  else
#    define LIBCA_CERTIFICATES_CURL_SYMEXPORT
#  endif
#elif defined(LIBCA_CERTIFICATES_CURL_SHARED_BUILD) /* Building shared. */
#  ifdef _WIN32
#    define LIBCA_CERTIFICATES_CURL_SYMEXPORT __declspec(dllexport)
#  else
#    define LIBCA_CERTIFICATES_CURL_SYMEXPORT
#  endif
#else
/* If none of the above macros are defined, then we assume we are being used
 * by some third-party build system that cannot/doesn't signal the library
 * type. Note that this fallback works for both static and shared but in case
 * of shared will be sub-optimal compared to having dllimport.
 */
#  define LIBCA_CERTIFICATES_CURL_SYMEXPORT         /* Using static or shared. */
#endif