Fix startup crash on DragonFly BSD

This commit is contained in:
Cacodemon345 2020-06-11 16:59:40 +00:00 committed by alexey.lysiuk
parent 8af21a13e7
commit b22ed9f237

View file

@ -54,7 +54,7 @@
#endif #endif
#ifndef _DEBUG #ifndef _DEBUG
#if !defined(__solaris__) && !defined(__OpenBSD__) #if !defined(__solaris__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
void *M_Malloc(size_t size) void *M_Malloc(size_t size)
{ {
void *block = malloc(size); void *block = malloc(size);
@ -124,7 +124,7 @@ void *M_Realloc(void *memblock, size_t size)
#include <crtdbg.h> #include <crtdbg.h>
#endif #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 *M_Malloc_Dbg(size_t size, const char *file, int lineno)
{ {
void *block = _malloc_dbg(size, _NORMAL_BLOCK, file, 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
#endif #endif
#if !defined(__solaris__) && !defined(__OpenBSD__) #if !defined(__solaris__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
void M_Free (void *block) void M_Free (void *block)
{ {
if (block != NULL) if (block != NULL)