Page 1 of 1

Proposed feature: Configure check for proper printf() format specifier for size_t variables

Posted: Thu Dec 09, 2021 3:00 am
by cazfi
osdn #43357: Targeted to freeciv-3.1: As a first step of replacing hacks around printing value of type size_t variables (including writing to a savegame), we should add configure check to detect what kind of format specifier is supported for that in the platform. Supposedly doing it that way instead of e.g. casting to the same strict type in all platforms would fix some rare corner-case bugs (such as having problems with savegames of over 4GB in size even on platforms that would otherwise support them)