]> 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 78c6b19b9cfa204178b5c797a397f4fb825a9446..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.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