Only redefine size_t and CHAR_BIT if they are not already defined.
This commit is contained in:
parent
ff1e35cb62
commit
fa128a27ab
@ -1,3 +1,8 @@
|
|||||||
|
Tue Apr 7 22:16:09 1992 Fred Fish (fnf@cygnus.com)
|
||||||
|
|
||||||
|
* mmalloc.h (size_t, CHAR_BIT): Only redefine if not already
|
||||||
|
defined.
|
||||||
|
|
||||||
Mon Apr 6 20:49:33 1992 Fred Fish (fnf@cygnus.com)
|
Mon Apr 6 20:49:33 1992 Fred Fish (fnf@cygnus.com)
|
||||||
|
|
||||||
* mmalloc.h: Remove include of <stdlib.h>. This also gets rid
|
* mmalloc.h: Remove include of <stdlib.h>. This also gets rid
|
||||||
|
@ -36,12 +36,15 @@ Cambridge, MA 02139, USA.
|
|||||||
# define NULL (void *) 0
|
# define NULL (void *) 0
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# undef size_t
|
|
||||||
# define size_t unsigned int
|
|
||||||
# define CHAR_BIT 8
|
|
||||||
# define PTR char *
|
# define PTR char *
|
||||||
# define CONST /* nothing */
|
# define CONST /* nothing */
|
||||||
# define PARAMS(paramlist) ()
|
# define PARAMS(paramlist) ()
|
||||||
|
# ifndef size_t
|
||||||
|
# define size_t unsigned int
|
||||||
|
# endif
|
||||||
|
# ifndef CHAR_BIT
|
||||||
|
# define CHAR_BIT 8
|
||||||
|
# endif
|
||||||
# ifndef NULL
|
# ifndef NULL
|
||||||
# define NULL 0
|
# define NULL 0
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user