Only redefine size_t and CHAR_BIT if they are not already defined.
authorFred Fish <fnf@specifix.com>
Wed, 8 Apr 1992 05:17:56 +0000 (05:17 +0000)
committerFred Fish <fnf@specifix.com>
Wed, 8 Apr 1992 05:17:56 +0000 (05:17 +0000)
mmalloc/ChangeLog
mmalloc/mmalloc.h

index 383f2fe5cf8fb47a64e34fe41d95526fe366a893..6facb665b7045970462b17b0024feff6e23eaa37 100644 (file)
@@ -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)
 
        * mmalloc.h:  Remove include of <stdlib.h>.  This also gets rid
index b06772650bc89343f9d4545c35c056996715645c..030cdc2bfd8f198a03521bb23635712dd7756806 100644 (file)
@@ -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
This page took 0.026234 seconds and 4 git commands to generate.