curl/include/curl
Viktor Szakats dbbbf717f3
curl.h: stop defining non-curl __has_declspec_attribute
Public curl headers are best not to define 3rd-party or system macros.
Introduce `CURL_HAS_DECLSPEC_ATTRIBUTE` to cover this system macro and
use it.

Detected by test1167 after dropping the indentation:
```
test 1167...[Verify curl prefix of public symbols in header files]

/usr/bin/perl -I. -I.  returned 1, when expecting 0
 1167: exit FAILED
== Contents of files in the log/10/ dir after test 1167
=== Start of file server.cmd
 Testnum 1167
=== End of file server.cmd
=== Start of file stdout1167
 Bad symbols in public header files:
   __has_declspec_attribute(x)
=== End of file stdout1167
```
Ref: https://github.com/curl/curl/actions/runs/13533200900/job/37819784405?pr=16490#step:42:2087

Ref: https://clang.llvm.org/docs/LanguageExtensions.html#has-declspec-attribute
Follow-up to 50482b8c0a #3616
Ref: #16496 (fixing test1167)
Closes #16491
2025-02-26 13:10:31 +01:00
..
curl.h curl.h: stop defining non-curl __has_declspec_attribute 2025-02-26 13:10:31 +01:00
curlver.h curlver.h: bump to 8.13.0 2025-02-21 11:07:56 +01:00
easy.h docs: use lowercase curl and libcurl 2025-01-02 17:15:54 +01:00
header.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.am build: untangle CURLDEBUG and DEBUGBUILD macros 2024-05-28 08:12:00 +02:00
mprintf.h printf: fix mingw-w64 format checks 2024-09-02 21:03:01 +02:00
multi.h source: avoid use of 'very' in comments 2024-10-17 13:36:33 +02:00
options.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
stdcheaders.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
system.h build: add Windows CE / CeGCC support, with CI jobs 2025-02-21 13:56:34 +01:00
typecheck-gcc.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
urlapi.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
websockets.h websocket: rename arguments/variables to match docs 2023-07-22 00:31:31 +02:00