1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 17:39:09 +00:00

Codechange: prevent using (f)printf/(f)puts over fmt::print

This commit is contained in:
Rubidium
2023-05-21 08:32:13 +02:00
committed by rubidium42
parent 411379f587
commit 2dbd974d4c

View File

@@ -54,6 +54,13 @@
/* No clear replacement. */
#define strtok SAFEGUARD_DO_NOT_USE_THIS_METHOD
/* Use fmt::print instead. */
#define printf SAFEGUARD_DO_NOT_USE_THIS_METHOD
#define fprintf SAFEGUARD_DO_NOT_USE_THIS_METHOD
#define puts SAFEGUARD_DO_NOT_USE_THIS_METHOD
#define fputs SAFEGUARD_DO_NOT_USE_THIS_METHOD
#define putchar SAFEGUARD_DO_NOT_USE_THIS_METHOD
/* Use our own templated implementation instead of a macro or function with only one type. */
#ifdef min
#undef min