[sword-devel] building with mingw

Matthew Talbert ransom1982 at gmail.com
Mon Apr 27 10:36:59 MST 2009


The following patch is necessary to build with MinGW (gcc 4.3.3).
Without it, SEEK_END is undefined. I haven't tested this on linux, but
it looks harmless.


Index: src/modules/lexdict/rawld/rawld.cpp
===================================================================
--- src/modules/lexdict/rawld/rawld.cpp	(revision 2349)
+++ src/modules/lexdict/rawld/rawld.cpp	(working copy)
@@ -26,6 +26,8 @@
 #include <rawld.h>
 #include <filemgr.h>

+#include <stdio.h>
+
 SWORD_NAMESPACE_START

  /******************************************************************************
Index: src/modules/lexdict/zld/zld.cpp
===================================================================
--- src/modules/lexdict/zld/zld.cpp	(revision 2349)
+++ src/modules/lexdict/zld/zld.cpp	(working copy)
@@ -25,6 +25,8 @@
 #include <zld.h>
 #include <filemgr.h>

+#include <stdio.h>
+
 SWORD_NAMESPACE_START

  /******************************************************************************
Index: src/modules/lexdict/rawld4/rawld4.cpp
===================================================================
--- src/modules/lexdict/rawld4/rawld4.cpp	(revision 2349)
+++ src/modules/lexdict/rawld4/rawld4.cpp	(working copy)
@@ -26,6 +26,8 @@
 #include <rawstr4.h>
 #include <rawld4.h>

+#include <stdio.h>
+
 SWORD_NAMESPACE_START



More information about the sword-devel mailing list