]> git.ipfire.org Git - thirdparty/curl.git/commit
CURLOPT: bump `CURLHEADER_*` macros to `long`, drop casts
authorViktor Szakats <commit@vsz.me>
Mon, 28 Jul 2025 09:10:34 +0000 (11:10 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 28 Jul 2025 15:31:33 +0000 (17:31 +0200)
commit113f6aacd4ae4eaa25fca91932013425fca3788d
treea2740e3a0c74000bb0e12d6d3a500003b18a3d50
parent1a12663d06d9c42fd40a8655d5247f7afeeb8e1e
CURLOPT: bump `CURLHEADER_*` macros to `long`, drop casts

This patch bumps the size of these macros from `int` to `long`, while
keeping their actual values the same. It may cause incompatibilities in
user code, requiring the bump of holder variables and/or adding casts:

- CURLHEADER_SEPARATE
- CURLHEADER_UNIFIED

Also:
- keep existing cast within the documentation to make sure it applies
  to older curl versions as well.

Closes #18055
include/curl/curl.h
tests/libtest/lib1525.c
tests/libtest/lib1526.c
tests/libtest/lib1527.c
tests/libtest/lib1528.c