mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 18:53:05 +00:00
doing some maintenance on the posix build system, getting in sync with reactos base.
svn path=/trunk/; revision=3940
This commit is contained in:
parent
0ab5c4ecee
commit
3028effd84
8 changed files with 282 additions and 99 deletions
|
@ -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)))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: stddef.h,v 1.4 2002/10/29 04:45:19 rex Exp $
|
||||
/* $Id: stddef.h,v 1.5 2003/01/05 18:27:19 robd Exp $
|
||||
*/
|
||||
/*
|
||||
* stddef.h
|
||||
|
@ -32,7 +32,20 @@
|
|||
|
||||
/* TYPES */
|
||||
typedef signed long int ptrdiff_t;
|
||||
typedef unsigned short int wchar_t;
|
||||
|
||||
#ifndef _WCHAR_T_
|
||||
#define _WCHAR_T_
|
||||
#define _WCHAR_T
|
||||
#define _WCHAR_T_DEFINED
|
||||
#ifndef __WCHAR_TYPE__
|
||||
#define __WCHAR_TYPE__ short unsigned int
|
||||
#endif
|
||||
#ifndef __cplusplus
|
||||
typedef __WCHAR_TYPE__ wchar_t;
|
||||
#endif /* C++ */
|
||||
#endif /* _WCHAR_T_ */
|
||||
|
||||
//typedef unsigned short int wchar_t;
|
||||
|
||||
/* CONSTANTS */
|
||||
#ifndef NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue