From 69f1286f2ba3d64cd10480629c89436d89e22081 Mon Sep 17 00:00:00 2001 From: scawful Date: Wed, 7 Aug 2024 15:19:13 -0400 Subject: [PATCH] fix font_loader.h --- src/app/core/platform/font_loader.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/app/core/platform/font_loader.h b/src/app/core/platform/font_loader.h index a0752dda..96ad3c4d 100644 --- a/src/app/core/platform/font_loader.h +++ b/src/app/core/platform/font_loader.h @@ -2,8 +2,6 @@ #ifndef FONTLOADER_H #define FONTLOADER_H -#include "TargetConditionals.h" - #ifdef _WIN32 #include // Windows specific function declaration for loading system fonts into ImGui @@ -11,16 +9,22 @@ int CALLBACK EnumFontFamExProc(const LOGFONT* lpelfe, const TEXTMETRIC* lpntme, DWORD FontType, LPARAM lParam); #elif __APPLE__ -#ifdef TARGET_OS_MAC +#include "TargetConditionals.h" + +#if TARGET_OS_MAC == 1 void LoadSystemFonts(); -#elif TARGET_OS_IPHONE +#elif TARGET_OS_IPHONE == 1 void LoadSystemFonts(); #endif +#elif __linux__ + +// TODO: Implement Linux specific function declaration for loading system fonts + #endif #endif // FONTLOADER_H