Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

33 lines
1.1 KiB

/********************************************************
* 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
#include "windowsx.h"
#define osMemAlloc(size) GlobalAllocPtr(GHND,size)
#define osMemFree GlobalFreePtr
#define osMemReAlloc(ptr,size) GlobalReAllocPtr(ptr,size,GHND)
#endif