From 0a4080f54433ed8a4ffb4c2ff764301719c4db0e Mon Sep 17 00:00:00 2001 From: lizzie Date: Tue, 28 Oct 2025 22:02:45 +0000 Subject: [PATCH] [frontend] fix Simpleini warnings SI_NO_CONVERSION macro being redefined when provided by cmdline (freebsd, linux, etc) Signed-off-by: lizzie --- src/frontend_common/config.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frontend_common/config.h b/src/frontend_common/config.h index 8b0599cc33..ed817a78b8 100644 --- a/src/frontend_common/config.h +++ b/src/frontend_common/config.h @@ -7,7 +7,12 @@ #include #include "common/settings.h" -#define SI_NO_CONVERSION +// May be defined on command line by system provided packages (FreeBSD devel/simpleini) +// but if building from source, it will not be defined, so just do it conditionally. +// Should probably define on CMake anyways but eh +#ifndef SI_NO_CONVERSION +# define SI_NO_CONVERSION 1 +#endif #include #include