From 225ecccd7db29ae4f043e5df3e7abb50a975e8fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 17 Jan 2022 23:08:35 +0100 Subject: [PATCH] Hide unused symbols when building with TTF support disabled (#16459) --- src/openrct2/platform/Platform.Linux.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openrct2/platform/Platform.Linux.cpp b/src/openrct2/platform/Platform.Linux.cpp index f70db58095..a2cf73b05b 100644 --- a/src/openrct2/platform/Platform.Linux.cpp +++ b/src/openrct2/platform/Platform.Linux.cpp @@ -315,6 +315,7 @@ namespace Platform return {}; } +# ifndef NO_TTF std::string GetFontPath(const TTFFontDescriptor& font) { log_verbose("Looking for font %s with FontConfig.", font.font_name); @@ -371,6 +372,7 @@ namespace Platform FcFini(); return path; } +# endif // NO_TTF } // namespace Platform #endif