aboutsummaryrefslogtreecommitdiff
path: root/mmalloc/mmalloc.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-04-08 05:17:56 +0000
committerFred Fish <fnf@specifix.com>1992-04-08 05:17:56 +0000
commitfa128a27abf9f71131b174db2e06586486da2a25 (patch)
tree62825615e05a36286a8570f718d16fcef241beaa /mmalloc/mmalloc.h
parentff1e35cb62df4179a14a64cbee4c752eb0ba8885 (diff)
downloadgdb-fa128a27abf9f71131b174db2e06586486da2a25.zip
gdb-fa128a27abf9f71131b174db2e06586486da2a25.tar.gz
gdb-fa128a27abf9f71131b174db2e06586486da2a25.tar.bz2
Only redefine size_t and CHAR_BIT if they are not already defined.
Diffstat (limited to 'mmalloc/mmalloc.h')
-rw-r--r--mmalloc/mmalloc.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/mmalloc/mmalloc.h b/mmalloc/mmalloc.h
index b067726..030cdc2 100644
--- a/mmalloc/mmalloc.h
+++ b/mmalloc/mmalloc.h
@@ -36,12 +36,15 @@ Cambridge, MA 02139, USA.
# define NULL (void *) 0
# endif
#else
-# undef size_t
-# define size_t unsigned int
-# define CHAR_BIT 8
# define PTR char *
# define CONST /* nothing */
# define PARAMS(paramlist) ()
+# ifndef size_t
+# define size_t unsigned int
+# endif
+# ifndef CHAR_BIT
+# define CHAR_BIT 8
+# endif
# ifndef NULL
# define NULL 0
# endif