summaryrefslogtreecommitdiff
path: root/src/port/Game.cpp
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-04-19 03:21:56 -0600
committerSonic Dreamcaster <alejandro.asenjo88@gmail.com>2024-09-17 19:31:26 -0300
commitdc9e25847da677492f699af28ac83603eb7066ec (patch)
tree01df3304b97cb85dbbf32492b5e9e70f09714add /src/port/Game.cpp
parentf71ebdca828a94ed6525a3d32fe8153960e5e102 (diff)
Added IOS Support
Diffstat (limited to 'src/port/Game.cpp')
-rw-r--r--src/port/Game.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/port/Game.cpp b/src/port/Game.cpp
index ffa9bbc7..27d1cc64 100644
--- a/src/port/Game.cpp
+++ b/src/port/Game.cpp
@@ -31,7 +31,10 @@ void push_frame() {
#ifdef _WIN32
int SDL_main(int argc, char **argv) {
#else
-int main(){
+#if defined(__cplusplus) && defined(PLATFORM_IOS)
+extern "C"
+#endif
+int main(int argc, char *argv[]) {
#endif
GameEngine::Create();
Main_SetVIMode();