From 004bb71d88ed54eb4d540d14491bf86256a952fd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 18 Jan 2020 22:19:54 +0300 Subject: Add implementation --- .../libca-certificates-curl/export.h | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libca-certificates-curl/libca-certificates-curl/export.h (limited to 'libca-certificates-curl/libca-certificates-curl/export.h') diff --git a/libca-certificates-curl/libca-certificates-curl/export.h b/libca-certificates-curl/libca-certificates-curl/export.h new file mode 100644 index 0000000..ec2f0a1 --- /dev/null +++ b/libca-certificates-curl/libca-certificates-curl/export.h @@ -0,0 +1,31 @@ +/* file : libca-certificates-curl/export.h -*- C -*- + * copyright : Copyright (c) 2018-2019 Code Synthesis Ltd + * 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 -- cgit v1.1