Initial Commit
[libctiny.git] / allocsup.cc
blobca03268e15b3c638bcd84ef53f42fea45522328e
1 //==========================================
2 // LIBCTINY - Matt Pietrek 2001
3 // MSDN Magazine, January 2001
4 //==========================================
5 #include "libctiny.h"
6 #include <windows.h>
7 #include <malloc.h>
9 extern "C" void * __cdecl _nh_malloc(size_t size, int) {
10 return HeapAlloc( GetProcessHeap(), 0, size );
13 extern "C" size_t __cdecl _msize(void * p) {
14 return HeapSize( GetProcessHeap(), 0, p );