Commit 390e01bf by Tom Wood

(NULL_PTR): Use the same definition as

	rtl.h and tree.h.

From-SVN: r1852
parent c7d26bc1
...@@ -130,18 +130,24 @@ typedef struct { unsigned :16, :16, :16; } vms_ino_t; ...@@ -130,18 +130,24 @@ typedef struct { unsigned :16, :16, :16; } vms_ino_t;
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif #endif
/* Define a generic NULL if one hasn't already been defined. */
#ifndef NULL #ifndef NULL
#define NULL 0 #define NULL 0
#endif #endif
#ifndef NULL_PTR #ifndef GENERIC_PTR
#ifdef __STDC__ #if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
#define NULL_PTR (void *) NULL #define GENERIC_PTR void *
#else #else
#define NULL_PTR (char *) NULL #define GENERIC_PTR char *
#endif #endif
#endif #endif
#ifndef NULL_PTR
#define NULL_PTR ((GENERIC_PTR)0)
#endif
#ifndef INCLUDE_LEN_FUDGE #ifndef INCLUDE_LEN_FUDGE
#define INCLUDE_LEN_FUDGE 0 #define INCLUDE_LEN_FUDGE 0
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment