ttf: ++uwp portability

use the preprocessor directives properly.
This commit is contained in:
Hermet Park 2024-03-22 14:42:32 +09:00
parent 38e248bbe4
commit a5414257d6
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@
#include "tvgTtfLoader.h"
#if defined(_WIN32)
#if defined(_WIN32) && (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
#include <windows.h>
#elif defined(__linux__)
#include <fcntl.h>
@ -36,7 +36,7 @@
/* Internal Class Implementation */
/************************************************************************/
#if defined(_WIN32)
#if defined(_WIN32) && (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
static bool _map(TtfLoader* loader, const string& path)
{

View file

@ -30,7 +30,7 @@
struct TtfLoader : public FontLoader
{
#if defined(_WIN32)
#if defined(_WIN32) && (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
void* mapping = nullptr;
#endif
TtfReader reader;