Change #254550
| Category | None |
| Changed by | Daniel Stenberg <daniel@haxx.se> |
| Changed at | Thu 08 Jan 2026 14:15:47 |
| Repository | https://api.github.com/repos/curl/curl |
| Project | curl/curl |
| Branch | master |
| Revision | 13c1a934144e98d06214a043ff4538791c7d9583 |
Comments
lib: remove uses of PRIu32 by adding "hack" for DJGPP Avoid using PRIu32 and PRId32 in product source code. We don't need it. It reduces readability. It is also inconsistent since unsigned int has the same size and does not require the define. DJGPP warns about using %u for uint32_t by default because it seems to typedef it to unsigned long instead of unsigned int. Which even that is annoying since long and int are both 32 bit on this platform. We use our own *printf() implementation and we know this is safe. This work-around defines uint32_t for DJGPP into unsigned int to avoid the warnings and thus the need to use PRIu32 and PRId32. Closes #20215
Changed files
- lib/conncache.c
- lib/curl_setup.h
- lib/multi.c
- lib/multi_ev.c
- lib/multi_ntfy.c
- lib/url.c
- tests/unit/unit3211.c
- tests/unit/unit3213.c