Commit fb9939b8 by Michael Meissner Committed by Jeff Law

random.c (NULL): Don't redefine NULL if it is already defined.

1998-12-30  Michael Meissner  <meissner@cygnus.com>
        * random.c (NULL): Don't redefine NULL if it is already defined.

From-SVN: r24659
parent 58a2f534
...@@ -2,6 +2,10 @@ Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> ...@@ -2,6 +2,10 @@ Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed. * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1998-12-30 Michael Meissner <meissner@cygnus.com>
* random.c (NULL): Don't redefine NULL if it is already defined.
Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* argv.c (buildargv): Cast the result of alloca in assignment. * argv.c (buildargv): Cast the result of alloca in assignment.
......
...@@ -37,10 +37,14 @@ ...@@ -37,10 +37,14 @@
#ifdef __STDC__ #ifdef __STDC__
# define PTR void * # define PTR void *
# ifndef NULL
# define NULL (void *) 0 # define NULL (void *) 0
# endif
#else #else
# define PTR char * # define PTR char *
# define NULL 0 # ifndef NULL
# define NULL (void *) 0
# endif
#endif #endif
#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