Skip to content

Commit

Permalink
Support MINGW build
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Jan 22, 2024
1 parent b3d596b commit bf7e7dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 4 additions & 0 deletions native/config/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef _JSDOS_CONFIG_H_
#define _JSDOS_CONFIG_H_

#include <stdint.h>

#define jsthrow(msg) { printf("%s\n", msg);abort(); }

/* Define if building universal (internal helper macro) */
Expand Down Expand Up @@ -83,7 +85,9 @@
/* #undef C_SDL_SOUND */

/* Define to 1 if you have setpriority support */
#ifndef WIN32
#define C_SET_PRIORITY 1
#endif

/* Define to 1 to enable movie recording, requires zlib built without Z_SOLO
*/
Expand Down
5 changes: 0 additions & 5 deletions native/jsdos/dosbox-x/jsdos-x-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6398,11 +6398,6 @@ void SDL_OnSectionPropChange(Section *x) {

static void show_warning(char const * const message) {
bool textonly = true;
#ifdef WIN32
textonly = false;
if ( !sdl.inioptionsInit(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE) < 0 ) textonly = true;
sdl.inited = true;
#endif
LOG_MSG( "Warning: %s", message);
if(textonly) return;
#if defined(C_SDL2)
Expand Down
2 changes: 1 addition & 1 deletion targets/dosbox-x-sdl2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set(DEFINITIONS_CORE_X

if (${EMSCRIPTEN})
list(APPEND DEFINITIONS_CORE_X -DC_EMSCRIPTEN)
else ()
elseif (!CMAKE_NO_FIND)
find_package(SDL2 REQUIRED)
endif ()

Expand Down

0 comments on commit bf7e7dd

Please sign in to comment.