]> git.ipfire.org Git - thirdparty/curl.git/commit
curl.h: change some enums to defines with L suffix
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Feb 2025 16:33:17 +0000 (17:33 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 Feb 2025 06:58:15 +0000 (07:58 +0100)
commit2ec00372a1fc7f27cd3a6c43e29007400acfe2b6
tree2c55d4e8266acdbfd7dcd1a270b1833b011d4056
parent7826927d9b3e05e5a2da18ae0b79e58392028947
curl.h: change some enums to defines with L suffix

To help applications do the right thing easier, change some enum values
into defines with L suffixes so that they get the corect type (long)
easier when used with curl_easy_setopt(). This also fixes a few of our
own libtests.

To reduce the risk that this change breaks the compile for any existing
users, the previously provided enums are still provided, but the values
to use are not defined by the enums.

This change "magically" fixes a few RTSP test failures we have had on
64-bit platforms because those options were not see using longs
properly.

Closes #16482
include/curl/curl.h
lib/setopt.c
src/tool_cfgable.h
src/tool_operate.c