summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-05 22:49:06 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-05 22:49:06 +0200
commitb7deb632513795e495e9a3aa76a9400fef4de364 (patch)
treef57006f6fee9b79aea3182df5f0c3b28e9fc71eb /src/main.c
parent52f3c7e158ee9436ee82f602ee9a6212dd54b776 (diff)
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
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
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. */
22 22
23#include "app.h" 23#include "app.h"
24 24
25#if defined (iPlatformApple) 25#if defined (iPlatformAppleDesktop)
26# include "macos.h" 26# include "macos.h"
27#endif 27#endif
28#if defined (iPlatformAppleMobile)
29# include "ios.h"
30#endif
28#if defined (iPlatformMsys) 31#if defined (iPlatformMsys)
29# include "win32.h" 32# include "win32.h"
30# define SDL_MAIN_HANDLED 33# define SDL_MAIN_HANDLED
@@ -41,7 +44,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
41int main(int argc, char **argv) { 44int main(int argc, char **argv) {
42 printf("Lagrange: A Beautiful Gemini Client\n"); 45 printf("Lagrange: A Beautiful Gemini Client\n");
43 signal(SIGPIPE, SIG_IGN); 46 signal(SIGPIPE, SIG_IGN);
44#if defined (iPlatformApple) 47#if defined (iPlatformAppleDesktop)
45 enableMomentumScroll_MacOS(); 48 enableMomentumScroll_MacOS();
46 registerURLHandler_MacOS(); 49 registerURLHandler_MacOS();
47#endif 50#endif