diff options
author | Viktor Szakats <commit@vsz.me> | 2025-07-27 15:09:08 +0200 |
---|---|---|
committer | Viktor Szakats <commit@vsz.me> | 2025-07-27 18:54:00 +0200 |
commit | 08f97cbf5c632d103bfa5bdf8558ba43d9147c1a (patch) | |
tree | 3668905a5f83de63eb4d579959620cf21e80b636 /docs/examples/multithread.c | |
parent | 6080143f9d4f198901792f1365123f9aad166446 (diff) |
doh: rename symbols to avoid collision with mingw-w64 headers
Collision happens when building with mingw-w64 v3 or v2 while targeting
Vista or newer. `iphlpapi.h` includes `windns.h` in this case, which
defines macros named `DNS_TYPE_*`, colliding with curl doh enums.
The issue was fixed in mingw-w64 v4:
https://github.com/mirror/mingw-w64/commit/ea95d55e3387353e453d6ae8fc5cb8f7503947c2
Fixes:
```
lib/doh.h:54:3: error: expected identifier before numeric constant
DNS_TYPE_A = 1,
^
```
Ref: https://github.com/curl/curl/actions/runs/16551209676/job/46806303365?pr=18009#step:10:17
This workaround seems harmless and generally good practice, but
another option is to require mingw-w64 v4.
Ref: #18009
Closes #18041
Diffstat (limited to 'docs/examples/multithread.c')
0 files changed, 0 insertions, 0 deletions