doing some maintenance on the posix build system, getting in sync with reactos base.
[reactos.git] / posix / include / psx / stdlib.h
index 5367d8c..74c00e8 100644 (file)
@@ -1,3 +1,5 @@
+/* $Id: stdlib.h,v 1.5 2003/01/05 18:27:20 robd Exp $
+ */
 /*
  * psx/stdlib.h
  *
 
 /* 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)))