From c9c077aa07bbd6d96f3b4a6b5d7b87d3af0396af Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Thu, 22 May 2025 12:20:13 -0230 Subject: [PATCH] Visual Studio can't find main without a new SDL header file. --- src/common/main.cxx | 4 ++++ src/os/windows/Stella.vcxproj | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/common/main.cxx b/src/common/main.cxx index a9afa1536..b36e5f595 100644 --- a/src/common/main.cxx +++ b/src/common/main.cxx @@ -15,6 +15,10 @@ // this file, and for a DISCLAIMER OF ALL WARRANTIES. //============================================================================ +#if defined(SDL_SUPPORT) + #include +#endif + #include "bspf.hxx" #include "Logger.hxx" #include "MediaFactory.hxx" diff --git a/src/os/windows/Stella.vcxproj b/src/os/windows/Stella.vcxproj index da0cd3f08..98d5edef3 100755 --- a/src/os/windows/Stella.vcxproj +++ b/src/os/windows/Stella.vcxproj @@ -191,7 +191,7 @@ true - SDL2.lib;SDL2main.lib;SDL2main.lib;%(AdditionalDependencies) + SDL3.lib;SDL2main.lib;%(AdditionalDependencies) $(OutDir)Stella.exe true $(OutDir)Stella.pdb @@ -229,7 +229,7 @@ true - SDL2.lib;SDL2main.lib;SDL2main.lib;%(AdditionalDependencies) + SDL3.lib;SDL2main.lib;%(AdditionalDependencies) $(OutDir)Stella.exe true $(OutDir)Stella.pdb @@ -269,7 +269,7 @@ true - SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + SDL3.lib;%(AdditionalDependencies) $(OutDir)Stella.exe false Windows @@ -311,7 +311,7 @@ true - SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + SDL3.lib;%(AdditionalDependencies) $(OutDir)Stella.exe false Windows @@ -353,7 +353,7 @@ true - SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + SDL3.lib;%(AdditionalDependencies) $(OutDir)Stella.exe true Windows @@ -393,7 +393,7 @@ true - SDL2.lib;SDL2main.lib;%(AdditionalDependencies) + SDL3.lib;%(AdditionalDependencies) $(OutDir)Stella.exe DebugFull Windows