mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 17:32:26 +00:00
Fix startup crash on DragonFly BSD
This commit is contained in:
parent
8af21a13e7
commit
b22ed9f237
1 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef _DEBUG
|
||||
#if !defined(__solaris__) && !defined(__OpenBSD__)
|
||||
#if !defined(__solaris__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
|
||||
void *M_Malloc(size_t size)
|
||||
{
|
||||
void *block = malloc(size);
|
||||
|
@ -124,7 +124,7 @@ void *M_Realloc(void *memblock, size_t size)
|
|||
#include <crtdbg.h>
|
||||
#endif
|
||||
|
||||
#if !defined(__solaris__) && !defined(__OpenBSD__)
|
||||
#if !defined(__solaris__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
|
||||
void *M_Malloc_Dbg(size_t size, const char *file, int lineno)
|
||||
{
|
||||
void *block = _malloc_dbg(size, _NORMAL_BLOCK, file, lineno);
|
||||
|
@ -192,7 +192,7 @@ void *M_Realloc_Dbg(void *memblock, size_t size, const char *file, int lineno)
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(__solaris__) && !defined(__OpenBSD__)
|
||||
#if !defined(__solaris__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
|
||||
void M_Free (void *block)
|
||||
{
|
||||
if (block != NULL)
|
||||
|
|
Loading…
Reference in a new issue