Skip to content

Commit

Permalink
Updates for SDL2 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrysmagin authored and mywave82 committed Jun 27, 2023
1 parent b71fcaa commit e9130cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions sdl-win-fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/sdl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#include "sdlx.h"
Expand Down

0 comments on commit e9130cc

Please sign in to comment.