#include #include #if defined (iPlatformMsys) # define SDL_MAIN_HANDLED #endif #include #include "app.h" #if defined (iPlatformApple) extern void enableMomentumScroll_MacOS(void); #endif int main(int argc, char **argv) { #if defined (iPlatformApple) enableMomentumScroll_MacOS(); #endif #if defined (iPlatformMsys) /* MSYS runtime takes care of WinMain. */ SDL_SetMainReady(); #endif init_Foundation(); printf("Lagrange: A Beautiful Gemini Client\n"); /* Initialize SDL. */ SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { fprintf(stderr, "SDL init failed: %s\n", SDL_GetError()); return -1; } run_App(argc, argv); SDL_Quit(); return 0; }