diff --git a/sdl-win-fix.sh b/sdl-win-fix.sh index 6760c2d..c3faa41 100755 --- a/sdl-win-fix.sh +++ b/sdl-win-fix.sh @@ -2,4 +2,5 @@ sed -i "s/-mwindows/-mconsole/g" Makefile ./src/Makefile sed -i "s/-lSDLmain//g" Makefile ./src/Makefile +sed -i "s/-lSDL2main//g" Makefile ./src/Makefile sed -i "s/-Dmain=SDL_main//g" Makefile ./src/Makefile diff --git a/src/sdl.cc b/src/sdl.cc index 174d9cd..28d0ea3 100644 --- a/src/sdl.cc +++ b/src/sdl.cc @@ -17,6 +17,8 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include +#include #include #include "sdlx.h"