]> mj.ucw.cz Git - libucw.git/blobdiff - lib/alloc.c
Supply default element swapping macro.
[libucw.git] / lib / alloc.c
index 075321436c44f1dba1ffb54d5098d5248fd60b64..21d9635778daf3974132f1fc6f13df82523f78a4 100644 (file)
@@ -2,6 +2,9 @@
  *     Sherlock Library -- Memory Allocation
  *
  *     (c) 2000 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 "lib/lib.h"
@@ -9,6 +12,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#ifndef DEBUG_DMALLOC
+
 void *
 xmalloc(uns size)
 {
@@ -18,6 +23,8 @@ xmalloc(uns size)
   return x;
 }
 
+#endif
+
 void *
 xmalloc_zero(uns size)
 {