Skip to content

Commit

Permalink
Workaround Emscripten build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
leo60228 committed Mar 31, 2021
1 parent 033c0ab commit 579384c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib/SDL_stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ SDL_truncf(float x)
double
SDL_fmod(double x, double y)
{
#if defined(HAVE_FMOD)
#if defined(HAVE_FMOD) || defined(__EMSCRIPTEN__)
return fmod(x, y);
#else
return SDL_uclibc_fmod(x, y);
Expand Down
1 change: 1 addition & 0 deletions src/video/SDL_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#include "../events/SDL_displayevents.c"
#endif

/* Available video drivers */
Expand Down

0 comments on commit 579384c

Please sign in to comment.