mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
Fix FreeBSD compilation (#1184)
This commit is contained in:
parent
8a4b686881
commit
4374b8017e
1 changed files with 4 additions and 0 deletions
|
@ -43,7 +43,11 @@
|
|||
#elif defined(__solaris__) || defined(__OpenBSD__) || defined(__DragonFly__)
|
||||
#define _msize(p) (*((size_t*)(p)-1))
|
||||
#elif !defined(_WIN32)
|
||||
#ifdef __FreeBSD__
|
||||
#include <malloc_np.h>
|
||||
#else
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#define _msize(p) malloc_usable_size(p) // from glibc/FreeBSD
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue