doing some maintenance on the posix build system, getting in sync with reactos base.

svn path=/trunk/; revision=3940
This commit is contained in:
Robert Dickenson 2003-01-05 18:29:41 +00:00
parent 0ab5c4ecee
commit 3028effd84
8 changed files with 282 additions and 99 deletions

View file

@ -1,4 +1,4 @@
/* $Id: stdlib.h,v 1.4 2002/10/29 04:45:15 rex Exp $
/* $Id: stdlib.h,v 1.5 2003/01/05 18:27:20 robd Exp $
*/
/*
* psx/stdlib.h
@ -39,7 +39,11 @@
/* MACROS */
/* FIXME? Windows NT's ntdll doesn't export RtlGetProcessHeap() */
#define RtlGetProcessHeap() ((HANDLE)NtCurrentPeb()->ProcessHeap)
//#define RtlGetProcessHeap() ((HANDLE)NtCurrentPeb()->ProcessHeap)
#ifndef _RTLGETPROCESSHEAP_DEFINED_
#define _RTLGETPROCESSHEAP_DEFINED_
#define RtlGetProcessHeap() (NtCurrentPeb()->ProcessHeap)
#endif
#define __malloc(SIZE) (RtlAllocateHeap(RtlGetProcessHeap(), 0, (SIZE)))
#define __realloc(PTR,SIZE) (RtlReAllocateHeap(RtlGetProcessHeap(), 0, (PTR), (SIZE)))