GCC complains about some functions with no prototypes. The attached
patch fixes the problem.
cdata.d calls memcmp() and memcpy(), so needs <string.h>.
main.d calls memcpy(), so needs <string.h>.
num_rand.d calls read() and close() if !defined(ECL_MS_WINDOWS_HOST),
so needs <unistd.h>.
Regards,
--
Jerry James
http://www.jamezone.org/
diff --git a/src/c/ffi/cdata.d b/src/c/ffi/cdata.d
index c6a89c9..1a15e09 100644
--- a/src/c/ffi/cdata.d
+++ b/src/c/ffi/cdata.d
@@ -13,6 +13,7 @@
See file '../Copyright' for full details.
*/
+#include <string.h>
#include <ecl/ecl.h>
#include <ecl/ecl-inl.h>
diff --git a/src/c/main.d b/src/c/main.d
index fffab2b..a603ca0 100644
--- a/src/c/main.d
+++ b/src/c/main.d
@@ -40,6 +40,7 @@
#endif
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <ecl/cache.h>
#include <ecl/internal.h>
#include <ecl/ecl-inl.h>
diff --git a/src/c/num_rand.d b/src/c/num_rand.d
index 3e6d76f..f4a4cb5 100644
--- a/src/c/num_rand.d
+++ b/src/c/num_rand.d
@@ -21,6 +21,9 @@
#include <stdlib.h>
#include <ecl/internal.h>
#include <fcntl.h>
+#if !defined(ECL_MS_WINDOWS_HOST)
+# include <unistd.h>
+#endif
#if !defined(_MSC_VER) && !defined(__MINGW32__)
# include <sys/stat.h>
/* it isn't pulled in by fcntl.h */
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list