OSDN Git Service

* lha_macro.h: define bcmp(), bzero(), bcopy() even if STDC_HEADERS is defined.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Fri, 17 May 2002 20:16:32 +0000 (20:16 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Fri, 17 May 2002 20:16:32 +0000 (20:16 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@41 6a8cc165-1e22-0410-a132-eb4e3f353aba

src/lha_macro.h

index 700a093..fbd40f1 100644 (file)
@@ -318,6 +318,9 @@ typedef short                               node;
 /* ------------------------------------------------------------------------ */
 #if STDC_HEADERS
 # include <string.h>
+# define bcmp(a,b,n)    memcmp((a),(b),(n))
+# define bzero(d,n)     memset((d),0,(n))
+# define bcopy(s,d,n)   memmove((d),(s),(n))
 #else
 # ifndef HAVE_STRCHR
 #  define strchr index
@@ -325,9 +328,9 @@ typedef short                               node;
 # endif
 char *strchr (), *strrchr ();
 # ifdef HAVE_MEMCPY
-#  define bcmp(a,b,n)  memcmp((a),(b),(n))
-#  define bzero(d,n)   memset((d),0,(n))
-#  define bcopy(s,d,n) memmove((d),(s),(n))
+#  define bcmp(a,b,n)   memcmp((a),(b),(n))
+#  define bzero(d,n)    memset((d),0,(n))
+#  define bcopy(s,d,n)  memmove((d),(s),(n))
 # endif
 #endif