mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Reworked source tree so it compiles
This commit is contained in:
parent
19e33444e7
commit
8ef16a91f2
164 changed files with 3183 additions and 20134 deletions
|
@ -22,14 +22,32 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
// mem_blockalloc.cpp: Fast block memory manager
|
||||
|
||||
#include <glb_local.h>
|
||||
#if defined(GAME_DLL)
|
||||
|
||||
#include "g_local.h"
|
||||
|
||||
void *MEM_Alloc( int size )
|
||||
{
|
||||
return glbs.Malloc( size );
|
||||
return gi.Malloc( size );
|
||||
}
|
||||
|
||||
void MEM_Free( void *ptr )
|
||||
{
|
||||
return glbs.Free( ptr );
|
||||
return gi.Free( ptr );
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#include "qcommon.h"
|
||||
|
||||
void* MEM_Alloc(int size)
|
||||
{
|
||||
return Z_Malloc(size);
|
||||
}
|
||||
|
||||
void MEM_Free(void* ptr)
|
||||
{
|
||||
return Z_Free(ptr);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue