]> mj.ucw.cz Git - libucw.git/blobdiff - lib/realloc.c
Added very simple functions for emulating a fastbuf stream over a static
[libucw.git] / lib / realloc.c
index 3ee75aa8c3caeb983259c43b1ff19bf785e60cf5..150a3d7bc5593d61d655349a0294a4e3cb3ebe52 100644 (file)
@@ -1,13 +1,17 @@
 /*
  *     Sherlock Library -- Memory Re-allocation
  *
- *     (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
-#include <stdio.h>
+#include "lib/lib.h"
+
 #include <stdlib.h>
 
-#include "lib/lib.h"
+#ifndef DMALLOC
 
 void *
 xrealloc(void *old, uns size)
@@ -17,3 +21,5 @@ xrealloc(void *old, uns size)
     die("Cannot reallocate %d bytes of memory", size);
   return x;
 }
+
+#endif