On Wed, 4 Jun 2025, Jeff King wrote:
It seems kind of weird to me that curl doesn't define these constants as longs, since the point of them is to pass to curl_easy_setopt().
Agreed. Mostly just because of my lack of imagination when I added them a long time ago.
We have over recent times updated several public option related defines to better help applications to get int vs long right, but I have clearly missed to do that for this particular set.
I intend to fix this omission, but since you want to support building with lots of old curl versions as well, this correction probably won't help you for another decade or so... :-)
-- / daniel.haxx.se