From: Michihiro NAKAJIMA Date: Mon, 30 May 2011 08:47:00 +0000 (-0400) Subject: Some c compiler system provides wmemcpy as macro. X-Git-Tag: v3.0.0a~296 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ba04f08e085e8bb0148091821555ad2a398efe;p=thirdparty%2Flibarchive.git Some c compiler system provides wmemcpy as macro. SVN-Revision: 3391 --- diff --git a/libarchive/archive_string.c b/libarchive/archive_string.c index d842235ce..45a6cec15 100644 --- a/libarchive/archive_string.c +++ b/libarchive/archive_string.c @@ -70,7 +70,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_string.c 201095 2009-12-28 02:33 #include "archive_string.h" #include "archive_string_composition.h" -#ifndef HAVE_WMEMCPY +#if !defined(HAVE_WMEMCPY) && !defined(wmemcpy) #define wmemcpy(a,b,i) (wchar_t *)memcpy((a), (b), (i) * sizeof(wchar_t)) #endif