test for bcopy and bzero and supply replacements if not found
[swftools.git] / lib / MD5.c
index cfadea1..ee457e0 100644 (file)
--- a/lib/MD5.c
+++ b/lib/MD5.c
@@ -120,6 +120,20 @@ do {                               \
  * UNIX password
  */
 
+#ifndef HAVE_BCOPY
+void bcopy(void*src, void*dest, int len) 
+{
+    memcpy(dest, src, len);
+}
+#endif
+
+#ifndef HAVE_BZERO
+void bzero(void*mem, int len) 
+{
+    memset(mem, 0, len);
+}
+#endif
+
 #define MD4_SIZE 16
 #define MD5_SIZE 16