use SDL2main

This commit is contained in:
tildearrow 2023-01-14 14:57:03 -05:00
parent b644de1c1f
commit f69917010a
2 changed files with 3 additions and 4 deletions

View File

@ -265,6 +265,9 @@ if (USE_SDL2)
if (MSVC)
list(APPEND DEPENDENCIES_COMPILE_OPTIONS "/DHAVE_LIBC")
endif()
if (WIN32)
list(APPEND DEPENDENCIES_LIBRARIES SDL2main)
endif()
message(STATUS "Using vendored SDL2")
endif()
else()

View File

@ -613,7 +613,3 @@ int main(int argc, char** argv) {
#endif
return 0;
}
#ifdef _WIN32
#include "winMain.cpp"
#endif