Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #254553

Category curl
Changed by Daniel Stenberg <danielohnoyoudont@haxx.se>
Changed at Thu 08 Jan 2026 14:15:47
Repository https://github.com/curl/curl.git
Project 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