Commit cb719a5c1c2eb391d6a5f5e02484ba4aa990a51b

Zachary Waldowski 2013-11-30T04:09:18

Darwin/iOS: Fix LLVM 3.3 warning re: memcpy.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/ffi_common.h b/include/ffi_common.h
index 37f5a9e..be10922 100644
--- a/include/ffi_common.h
+++ b/include/ffi_common.h
@@ -48,7 +48,7 @@ char *alloca ();
 #endif
 
 /* Check for the existence of memcpy. */
-#if STDC_HEADERS
+#if STDC_HEADERS || HAVE_STRING_H
 # include <string.h>
 #else
 # ifndef HAVE_MEMCPY