mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
ttf: ++uwp portability
use the preprocessor directives properly.
This commit is contained in:
parent
b3f09cab6b
commit
832f22e915
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue