GCCs older than 3.1 understand __attribute__(printf(...)), but only with functions; it doesn't work with function pointers. This change uses PRINTF_F_PTR to remove the attribute from two function pointers. This change establishes GCC 3.0 as the minimum version to build NetHack. Older versions have trouble with the variadic macros and variable declarations in mid-block.
14 KiB
14 KiB