Fix NO_TTF builds for Windows and macOS

This commit is contained in:
Michał Janiszewski 2018-03-09 16:40:40 +01:00 committed by Michael Steenbeek
parent 35f3d9f4c9
commit 229c793b33
2 changed files with 4 additions and 0 deletions

View File

@ -444,6 +444,7 @@ uint8 platform_get_locale_date_format()
return DATE_FORMAT_DAY_MONTH_YEAR;
}
#ifndef NO_TTF
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
{
#if !defined(__MINGW32__) && ((NTDDI_VERSION >= NTDDI_VISTA) && !defined(_USING_V110_SDK71_) && !defined(_ATL_XP_TARGETING))
@ -472,6 +473,7 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
return true;
#endif
}
#endif // NO_TTF
utf8 * platform_get_absolute_path(const utf8 * relativePath, const utf8 * basePath)
{

View File

@ -47,6 +47,7 @@ utf8* macos_str_decomp_to_precomp(utf8 *input)
}
}
#ifndef NO_TTF
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
{
@autoreleasepool
@ -62,6 +63,7 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
}
}
}
#endif // NO_TTF
bool platform_has_matching_language(NSString *preferredLocale, uint16* languageIdentifier)
{