All compile errors on Mac fixed.

This commit is contained in:
Christoph Oelckers 2018-02-22 13:50:41 +01:00
parent 2c138d703d
commit 504d68e2f8
3 changed files with 8 additions and 6 deletions

View File

@ -40,7 +40,6 @@
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>
#include "mus2midi.h" #include "mus2midi.h"
extern void ChildSigHandler (int signum);
#endif #endif
#include <ctype.h> #include <ctype.h>
@ -159,9 +158,6 @@ void I_InitMusic (void)
setatterm = true; setatterm = true;
atterm (I_ShutdownMusicExit); atterm (I_ShutdownMusicExit);
#ifndef _WIN32
signal (SIGCHLD, ChildSigHandler);
#endif
} }
MusicDown = false; MusicDown = false;
} }

View File

@ -37,6 +37,10 @@
#include <stdio.h> #include <stdio.h>
#include "i_soundfont.h" #include "i_soundfont.h"
#include "cmdlib.h" #include "cmdlib.h"
#include "w_wad.h"
#include "i_system.h"
#include "gameconfigfile.h"
#include "resourcefiles/resourcefile.h"
//========================================================================== //==========================================================================

View File

@ -285,6 +285,9 @@ Appendix :
w[] and ip[] are compatible with all routines. w[] and ip[] are compatible with all routines.
*/ */
#include <math.h>
namespace TimidityPlus namespace TimidityPlus
{ {
void makewt(int nw, int *ip, float *w); void makewt(int nw, int *ip, float *w);
@ -656,7 +659,6 @@ void dfst(int n, float *a, float *t, int *ip, float *w)
/* -------- initializing routines -------- */ /* -------- initializing routines -------- */
#include <math.h>
void makewt(int nw, int *ip, float *w) void makewt(int nw, int *ip, float *w)
{ {
@ -1348,4 +1350,4 @@ void dstsub(int n, float *a, int nc, float *c)
a[m] *= c[0]; a[m] *= c[0];
} }
} }