From b7deb632513795e495e9a3aa76a9400fef4de364 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 5 Feb 2021 22:49:06 +0200 Subject: Experimenting with an iOS build iPlatformApple applies to both macOS and iOS. Added iPlatformAppleDesktop and iPlatformAppleMobile to make a distinction between the two. IssueID #96 --- src/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 5e4e7284..49487bbf 100644 --- a/src/main.c +++ b/src/main.c @@ -22,9 +22,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "app.h" -#if defined (iPlatformApple) +#if defined (iPlatformAppleDesktop) # include "macos.h" #endif +#if defined (iPlatformAppleMobile) +# include "ios.h" +#endif #if defined (iPlatformMsys) # include "win32.h" # define SDL_MAIN_HANDLED @@ -41,7 +44,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ int main(int argc, char **argv) { printf("Lagrange: A Beautiful Gemini Client\n"); signal(SIGPIPE, SIG_IGN); -#if defined (iPlatformApple) +#if defined (iPlatformAppleDesktop) enableMomentumScroll_MacOS(); registerURLHandler_MacOS(); #endif -- cgit v1.2.3