From 0d6b0a1868f128190dd4abca99c626d4e5ef25d4 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 24 Jul 2018 08:49:00 -0700 Subject: [PATCH] iOS build fixes --- project/include/hl.h | 2 ++ project/src/system/System.mm | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/project/include/hl.h b/project/include/hl.h index 3770b05d1..9ed3b0415 100644 --- a/project/include/hl.h +++ b/project/include/hl.h @@ -233,8 +233,10 @@ typedef uint16_t uchar; #if defined(HL_IOS) || defined(HL_TVOS) || defined(HL_MAC) #include #include +#ifdef HL_MAC typedef uint16_t char16_t; typedef uint32_t char32_t; +#endif #elif defined(HL_NATIVE_UCHAR_FUN) # include #elif __cplusplus <= 199711L diff --git a/project/src/system/System.mm b/project/src/system/System.mm index 45a0f8537..e2c39122d 100644 --- a/project/src/system/System.mm +++ b/project/src/system/System.mm @@ -9,6 +9,28 @@ namespace lime { + void System::GCEnterBlocking () { + + // if (!_isHL) { + + gc_enter_blocking (); + + // } + + } + + + void System::GCExitBlocking () { + + // if (!_isHL) { + + gc_exit_blocking (); + + // } + + } + + std::wstring* System::GetIOSDirectory (SystemDirectory type) { #ifndef OBJC_ARC