Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Compile error fixes
This finally makes it possible to compile DOSBox with Emscripten.
This is not a functional state!
  • Loading branch information
dreamlayers committed Jan 6, 2014
1 parent bcb5795 commit f6e0953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/sdl_mapper.cpp
Expand Up @@ -24,6 +24,7 @@
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>


Expand Down Expand Up @@ -693,7 +694,7 @@ class CStickBindGroup : public CBindGroup {
if (abs(event->jaxis.value)<25000) return 0;
return CreateAxisBind(event->jaxis.axis,event->jaxis.value>0);
} else if (event->type==SDL_JOYBUTTONDOWN) {
if (event->button.which!=stick) return 0;
if (event->jbutton.which!=stick) return 0;
#if defined (REDUCE_JOYSTICK_POLLING)
return CreateButtonBind(event->jbutton.button%button_wrap);
#else
Expand Down
1 change: 1 addition & 0 deletions src/hardware/mixer.cpp
Expand Up @@ -24,6 +24,7 @@
*/

#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <math.h>

Expand Down

0 comments on commit f6e0953

Please sign in to comment.