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
984eb2eff9
commit
c73370a0ae
2 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include "tvgTtfLoader.h"
|
#include "tvgTtfLoader.h"
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32) && (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
/* Internal Class Implementation */
|
/* Internal Class Implementation */
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32) && (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
|
||||||
|
|
||||||
static bool _map(TtfLoader* loader, const string& path)
|
static bool _map(TtfLoader* loader, const string& path)
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
struct TtfLoader : public FontLoader
|
struct TtfLoader : public FontLoader
|
||||||
{
|
{
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32) && (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
|
||||||
void* mapping = nullptr;
|
void* mapping = nullptr;
|
||||||
#endif
|
#endif
|
||||||
TtfReader reader;
|
TtfReader reader;
|
||||||
|
|
Loading…
Add table
Reference in a new issue