X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/3b7c7bd7aae68ec949fb3f4ef1d58b96033e40df..f64cfb2378dc3a60cd30c50180a366ec54b98781:/rpc.subproj/types.h diff --git a/rpc.subproj/types.h b/rpc.subproj/types.h index 79f7ede..0fe5adc 100644 --- a/rpc.subproj/types.h +++ b/rpc.subproj/types.h @@ -51,7 +51,7 @@ * * from: @(#)types.h 1.18 87/07/24 SMI * from: @(#)types.h 2.3 88/08/15 4.0 RPCSRC - * $Id: types.h,v 1.3 2002/07/27 18:24:28 majka Exp $ + * $Id: types.h,v 1.4 2003/10/16 22:15:15 majka Exp $ */ /* @@ -70,9 +70,18 @@ #ifndef TRUE # define TRUE (1) #endif + #ifndef NULL -# define NULL 0 -#endif +#ifdef __GNUG__ +#define NULL __null +#else /* ! __GNUG__ */ +#ifndef __cplusplus +#define NULL ((void *)0) +#else /* __cplusplus */ +#define NULL 0 +#endif /* ! __cplusplus */ +#endif /* __GNUG__ */ +#endif /* ! NULL */ #define mem_alloc(bsize) calloc(1, bsize) #define mem_free(ptr, bsize) free(ptr) @@ -82,4 +91,12 @@ #endif #include +#ifdef __LP64__ +typedef int rpc_int; +typedef unsigned int rpc_uint; +#else +typedef long rpc_int; +typedef unsigned long rpc_uint; +#endif + #endif /* !_RPC_TYPES_H */