Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/********************************************************
* bltos.h * * os specific functionality for blitlib * * history * 7/7/95 created it myronth * * Copyright (c) Microsoft Corporation 1994-1995 * *********************************************************/
// Currently, DDraw is the only Win95 app linking with BlitLib
// and it uses local memory allocation.
// The following #define enables all other NT BlitLib applications to
// link with it and get global memory allocation.
#if WIN95 | MMOSA
#include "memalloc.h"
#define osMemAlloc MemAlloc
#define osMemFree MemFree
#define osMemReAlloc MemReAlloc
#else
#define osMemAlloc(size) LocalAlloc(LPTR,size)
#define osMemFree LocalFree
#define osMemReAlloc(ptr,size) LocalReAlloc((HLOCAL)ptr,size,LPTR)
#endif
|