summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-06-11 21:17:07 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-13 12:45:45 +0200
commita99ac62c1ab816ee48cac85fdf834f9fdc599cb1 (patch)
tree5225d076ab8000a01727076cf28100caaa4e9465 /src/stdafx.h
parent662d8dfc309d5c5312049a93002fd39176e96baf (diff)
downloadopenttd-a99ac62c1ab816ee48cac85fdf834f9fdc599cb1.tar.xz
Codechange: use the fmt library for simpler debug formats
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index e593344bf..effd57cae 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -425,6 +425,9 @@ static_assert(SIZE_MAX >= UINT32_MAX);
# define unlikely(x) (x)
#endif /* __GNUC__ || __clang__ */
+/* For the FMT library we only want to use the headers, not link to some library. */
+#define FMT_HEADER_ONLY
+
void NORETURN CDECL usererror(const char *str, ...) WARN_FORMAT(1, 2);
void NORETURN CDECL error(const char *str, ...) WARN_FORMAT(1, 2);
#define NOT_REACHED() error("NOT_REACHED triggered at line %i of %s", __LINE__, __FILE__)