From: Wouter Wijngaards Date: Wed, 10 Mar 2010 12:05:14 +0000 (+0000) Subject: Portability of alloc-lite X-Git-Tag: release-1.4.3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b5f2463432494c9d9e021b8a52731d5b3290a0a;p=thirdparty%2Funbound.git Portability of alloc-lite git-svn-id: file:///svn/unbound/trunk@2018 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/smallapp/unbound-host.c b/smallapp/unbound-host.c index 5b76f5143..88d0b8a1e 100644 --- a/smallapp/unbound-host.c +++ b/smallapp/unbound-host.c @@ -54,7 +54,7 @@ #undef free #undef realloc #undef strdup -char* unbound_lite_wrapstr(char* s) { return s; } +#define unbound_lite_wrapstr(s) s #endif #include "libunbound/unbound.h" #include diff --git a/testcode/harvest.c b/testcode/harvest.c index 4f27dda6f..e84f255dc 100644 --- a/testcode/harvest.c +++ b/testcode/harvest.c @@ -80,7 +80,7 @@ #undef realloc #undef free #undef strdup -char* unbound_lite_wrapstr(char* s) { return s; } +#define unbound_lite_wrapstr(s) s #endif struct todo_item; struct labdata;