diff --git a/include/curl/curl.h b/include/curl/curl.h index b72d031700..8fed06379c 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -102,11 +102,6 @@ #include #endif -/* Compatibility for non-Clang compilers */ -#ifndef __has_declspec_attribute -# define __has_declspec_attribute(x) 0 -#endif - #ifdef __cplusplus extern "C" { #endif @@ -121,7 +116,8 @@ typedef void CURLSH; #ifdef CURL_STATICLIB # define CURL_EXTERN #elif defined(_WIN32) || \ - (__has_declspec_attribute(dllexport) && \ + (__has_declspec_attribute && \ + __has_declspec_attribute(dllexport) && \ __has_declspec_attribute(dllimport)) # if defined(BUILDING_LIBCURL) # define CURL_EXTERN __declspec(dllexport)