mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
fix some crap
git-svn-id: https://svn.eduke32.com/eduke32@1666 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
013ac85e2d
commit
7be36ebcd4
5 changed files with 8 additions and 5 deletions
|
@ -49,7 +49,8 @@ ifneq (0,$(RELEASE))
|
|||
else
|
||||
# Debugging enabled
|
||||
debug=-ggdb -O0 -DDEBUGGINGAIDS -fstack-protector-all
|
||||
LIBS=-lm -lssp -Wl,--enable-auto-import
|
||||
LIBS=-lm
|
||||
|
||||
ifneq (0,$(KRANDDEBUG))
|
||||
debug+=-fno-inline -fno-inline-functions -fno-inline-functions-called-once
|
||||
debug+=-DKRANDDEBUG=1
|
||||
|
@ -87,6 +88,7 @@ include $(EROOT)/Makefile.shared
|
|||
ifeq ($(PLATFORM),WINDOWS)
|
||||
OBJ=obj_win
|
||||
EOBJ=eobj_win
|
||||
LIBS+= -lssp -Wl,--enable-auto-import
|
||||
else
|
||||
LIBS+= -ldl -pthread
|
||||
ifeq (1,$(PROFILER))
|
||||
|
|
|
@ -387,12 +387,14 @@ int32_t Bclosedir(BDIR *dir);
|
|||
# define Brealloc nedrealloc
|
||||
# define Bfree nedfree
|
||||
# define Bstrdup nedstrdup
|
||||
# define Bmemalign nedmemalign
|
||||
#else
|
||||
# define Bmalloc malloc
|
||||
# define Bcalloc calloc
|
||||
# define Brealloc realloc
|
||||
# define Bfree free
|
||||
# define Bstrdup strdup
|
||||
# define Bmemalign memalign
|
||||
#endif
|
||||
# define Bopen open
|
||||
# define Bclose close
|
||||
|
|
|
@ -1848,7 +1848,7 @@ int32_t OSD_RegisterFunction(const char *name, const char *help, int32_t (*func)
|
|||
return -1;
|
||||
}
|
||||
*/
|
||||
Bfree((char *)symb->help);
|
||||
// Bfree((char *)symb->help);
|
||||
symb->help = help;
|
||||
symb->func = func;
|
||||
return 0;
|
||||
|
|
|
@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#include "duke3d.h"
|
||||
|
||||
const char *s_buildDate = "20100703";
|
||||
const char *s_buildDate = "20100704";
|
||||
char *MusicPtr = NULL;
|
||||
int32_t g_musicSize;
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#if !defined _WIN32 // fork/exec based external midi player
|
||||
#include <unistd.h>
|
||||
#include <malloc.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/wait.h>
|
||||
static char **external_midi_argv;
|
||||
|
@ -168,7 +167,7 @@ int32_t MUSIC_Init(int32_t SoundCard, int32_t Address)
|
|||
sz = (numargs+2)*sizeof(char *) + (c-command+1);
|
||||
sz = ((sz+pagesize)/pagesize)*pagesize;
|
||||
|
||||
external_midi_argv = memalign(pagesize, sz);
|
||||
external_midi_argv = Bmemalign(pagesize, sz);
|
||||
if (!external_midi_argv)
|
||||
goto fallback;
|
||||
|
||||
|
|
Loading…
Reference in a new issue