parent
6cc6a447e6
commit
50482b8c0a
@ -91,6 +91,11 @@
|
|||||||
#include <support/SupportDefs.h>
|
#include <support/SupportDefs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Compatibility for non-Clang compilers */
|
||||||
|
#ifndef __has_declspec_attribute
|
||||||
|
# define __has_declspec_attribute(x) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -109,7 +114,9 @@ typedef void CURLSH;
|
|||||||
|
|
||||||
#ifdef CURL_STATICLIB
|
#ifdef CURL_STATICLIB
|
||||||
# define CURL_EXTERN
|
# define CURL_EXTERN
|
||||||
#elif defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__)
|
#elif defined(WIN32) || defined(_WIN32) || defined(__SYMBIAN32__) || \
|
||||||
|
(__has_declspec_attribute(dllexport) && \
|
||||||
|
__has_declspec_attribute(dllimport))
|
||||||
# if defined(BUILDING_LIBCURL)
|
# if defined(BUILDING_LIBCURL)
|
||||||
# define CURL_EXTERN __declspec(dllexport)
|
# define CURL_EXTERN __declspec(dllexport)
|
||||||
# else
|
# else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user