Fixed compilation errors with DEBUG_MEMORY on Linux because of CRT

This commit is contained in:
smallmodel 2023-09-07 19:28:44 +02:00
parent 67556a88f1
commit 8af202bd5f
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -150,9 +150,11 @@ extern "C" {
#ifndef Q3_VM
#ifdef _DEBUG_MEM
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
# ifdef WIN32
# define _CRTDBG_MAP_ALLOC
# include <stdlib.h>
# include <crtdbg.h>
# endif
#define Z_Malloc malloc
#define Z_TagMalloc(size, tag) malloc( size )