[sword-devel] mingw utilities

Matthew Talbert ransom1982 at gmail.com
Mon Apr 27 18:24:58 MST 2009


Here is a patch to make the utilities compile with MinGW. For
PlatformIDs, it appears to be completely unused, so probably could be
safely taken out. If it is to be left in, WINNT must be changed to
WINNT_NT (or anything other than WINNT) because WINNT is already
defined.

Matthew

Index: lexdump.c
===================================================================
--- lexdump.c   (revision 2353)
+++ lexdump.c   (working copy)
@@ -34,9 +34,16 @@
 #include <unistd.h>
 #endif

+//O_BINARY is only for Windows, while S_IRGRP and S_IROTH are not defined there
 #ifndef O_BINARY
 #define O_BINARY 0
 #endif
+#ifndef S_IRGRP
+#define S_IRGRP 0
+#endif
+#ifndef S_IROTH
+#define S_IROTH 0
+#endif

 int main(int argc, char **argv) {
        char *tmpbuf;
Index: diatheke/diathekemgr.h
===================================================================
--- diatheke/diathekemgr.h      (revision 2353)
+++ diatheke/diathekemgr.h      (working copy)
@@ -21,7 +21,7 @@
 #include <swmgr.h>
 #include "diafiltmgr.h"

-enum PlatformIDs { WIN32S = 0, WIN9X, WINNT, WINCE };
+//enum PlatformIDs { WIN32S = 0, WIN9X, WINNT_NT, WINCE };

 class DiathekeMgr : public SWMgr {
        SWFilter *arshaping;



More information about the sword-devel mailing list