From 540475fa54e953822e7c18236ee1b32cdef0bf9a Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Sun, 28 Jan 2024 22:39:03 +0100 Subject: [PATCH] Cross platform main --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index aac643d..03066f5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,8 @@ #include "Game.h" +#include -int main() { +extern "C" int main(int _argc, char* _argv[]) { Game game(SDL_Point{1000, 600}); return game.loop();