Viktor Szakats c04504885d
src: fix potential macro confusion in cmake unity builds
Sources used `lib/curlx.h` with both `ENABLE_CURLX_PRINTF` set and unset
before including it.

In a cmake "unity" batch where the first included source had it unset,
the next sources did not get the macros requested with
`ENABLE_CURLX_PRINTF` because `lib/curl.x` had already been included
without them.

Fix it by by making the macros enabled permanently and globally for
internal sources, and dropping `ENABLE_CURLX_PRINTF`.

This came up while testing unity builds with smaller batches. The full,
default unity build where all `src` is bundled up in a single unit, was
not affected.

Fixes:
```
$ cmake -B build -DCMAKE_UNITY_BUILD=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=15
$ make -C build
...
curl/src/tool_getparam.c: In function ‘getparameter’:
curl/src/tool_getparam.c:2409:11: error: implicit declaration of function ‘msnprintf’; did you mean ‘vsnprintf’? [-Wimplicit-function-declaration]
 2409 |           msnprintf(buffer, sizeof(buffer), "%" CURL_FORMAT_CURL_OFF_T "-",
      |           ^~~~~~~~~
      |           vsnprintf
curl/src/tool_getparam.c:2409:11: warning: nested extern declaration of ‘msnprintf’ [-Wnested-externs]
[...]
```

Reported-by: Daniel Stenberg
Bug: https://github.com/curl/curl/pull/14626#issuecomment-2301663491

Closes #14632
2024-08-22 10:45:04 +02:00
..
2024-08-15 15:30:09 +02:00
2024-08-21 08:53:11 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-12 19:19:28 +02:00
2024-08-12 19:19:28 +02:00
2024-07-01 22:58:55 +02:00
2024-03-18 12:41:56 +01:00
2024-08-03 19:53:54 +02:00
2024-08-05 08:53:55 +02:00
2024-08-05 08:53:55 +02:00
2024-08-17 00:32:38 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-04 19:17:45 +02:00
2024-06-05 14:02:39 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-08-03 19:53:54 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-14 11:51:55 +02:00
2024-08-14 11:51:55 +02:00
2024-07-01 22:58:55 +02:00
2024-04-16 15:52:10 +02:00
2024-08-03 19:53:54 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-04 19:17:45 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-15 15:30:09 +02:00
2024-07-01 22:58:55 +02:00
2024-04-11 09:00:51 +02:00
2024-07-01 22:58:55 +02:00
2024-08-03 19:53:54 +02:00
2024-08-15 08:54:19 +02:00
2024-08-15 08:54:19 +02:00
2024-07-01 22:58:55 +02:00
2024-08-03 19:51:02 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-06-05 14:02:39 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-07-01 22:58:55 +02:00
2024-08-07 14:59:07 +02:00
2024-08-09 10:45:40 +02:00
2024-04-30 14:22:11 +02:00
2024-07-01 22:58:55 +02:00
2024-08-04 19:17:45 +02:00
2024-06-05 14:02:39 +02:00
2024-08-04 19:17:45 +02:00
2023-12-18 14:56:57 +00:00
2024-08-07 15:13:07 +02:00
2024-08-04 19:17:45 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-09 10:45:40 +02:00
2024-08-15 15:30:09 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-03 19:53:54 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-08-04 19:17:45 +02:00
2024-07-01 22:58:55 +02:00
2024-08-03 19:53:54 +02:00
2024-07-01 22:58:55 +02:00
2024-08-08 17:52:25 +02:00
2024-07-01 22:58:55 +02:00
2024-04-11 09:29:21 +02:00
2024-08-02 11:17:44 +02:00
2024-08-20 00:44:10 +02:00
2024-08-03 19:49:15 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-06-12 16:04:53 +02:00
2024-08-04 19:17:45 +02:00
2024-07-15 23:47:33 +02:00
2024-08-04 19:17:45 +02:00
2024-07-01 22:58:55 +02:00
2024-08-04 19:17:45 +02:00
2024-03-04 08:42:56 +01:00
2024-08-14 11:51:55 +02:00
2024-08-04 19:17:45 +02:00
2024-08-03 19:53:54 +02:00
2024-08-03 19:53:54 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 22:58:55 +02:00
2024-07-01 16:45:17 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-08-15 15:30:09 +02:00
2024-07-01 16:45:17 +02:00
2024-08-04 19:17:45 +02:00
2024-06-26 08:33:17 +02:00
2024-08-04 19:17:45 +02:00
2024-08-15 15:30:09 +02:00
2024-08-04 19:17:45 +02:00
2024-08-04 19:17:45 +02:00
2024-08-12 19:19:28 +02:00
2024-07-01 16:45:17 +02:00