]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Some c compiler system provides wmemcpy as macro.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 30 May 2011 08:47:00 +0000 (04:47 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 30 May 2011 08:47:00 +0000 (04:47 -0400)
SVN-Revision: 3391

libarchive/archive_string.c

index d842235ce977359b03dea04634cf9a603cf4f99c..45a6cec158ca62405ff606bc96e77645ae68a222 100644 (file)
@@ -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