Skip to content

Commit

Permalink
build: handle SDL WinMain on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zeim839 committed Nov 27, 2024
1 parent a77bfae commit 0e4497d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@

#include "config.h"

#if defined _WIN32 || defined __CYGWIN__
#define SDL_MAIN_HANDLED
#endif

#include <SDL.h>
#include <SDL_ttf.h>

#include <time.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <math.h>
#include "log.h"

Expand Down

0 comments on commit 0e4497d

Please sign in to comment.