DMALLOC is enabled).
svn path=/trunk/yasm/; revision=311
# include <stddef.h>
#endif
-/* strdup() implementation with error checking (using xmalloc). */
-char *xstrdup(const char *str);
-
#if !defined(HAVE_MERGESORT)
int mergesort(void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *));
#include "ternary.h"
+#ifndef DMALLOC
+/* strdup() implementation with error checking (using xmalloc). */
+char *xstrdup(const char *str);
+
/* Error-checking memory allocation routines in xmalloc.c. */
void *xmalloc(size_t size);
void *xcalloc(size_t nelem, size_t elsize);
void *xrealloc(void *oldmem, size_t size);
void xfree(void *p);
+#endif
#ifdef HAVE_SYS_CDEFS_H
# include <sys/cdefs.h>
# include <stddef.h>
#endif
-/* strdup() implementation with error checking (using xmalloc). */
-char *xstrdup(const char *str);
-
#if !defined(HAVE_MERGESORT)
int mergesort(void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *));
#include "ternary.h"
+#ifndef DMALLOC
+/* strdup() implementation with error checking (using xmalloc). */
+char *xstrdup(const char *str);
+
/* Error-checking memory allocation routines in xmalloc.c. */
void *xmalloc(size_t size);
void *xcalloc(size_t nelem, size_t elsize);
void *xrealloc(void *oldmem, size_t size);
void xfree(void *p);
+#endif
#ifdef HAVE_SYS_CDEFS_H
# include <sys/cdefs.h>
# include <stddef.h>
#endif
-/* strdup() implementation with error checking (using xmalloc). */
-char *xstrdup(const char *str);
-
#if !defined(HAVE_MERGESORT)
int mergesort(void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *));
#include "ternary.h"
+#ifndef DMALLOC
+/* strdup() implementation with error checking (using xmalloc). */
+char *xstrdup(const char *str);
+
/* Error-checking memory allocation routines in xmalloc.c. */
void *xmalloc(size_t size);
void *xcalloc(size_t nelem, size_t elsize);
void *xrealloc(void *oldmem, size_t size);
void xfree(void *p);
+#endif
#ifdef HAVE_SYS_CDEFS_H
# include <sys/cdefs.h>