[sword-svn] r2811 - in trunk: include utilities

chrislit at crosswire.org chrislit at crosswire.org
Sun Jun 9 23:59:18 MST 2013


Author: chrislit
Date: 2013-06-09 23:59:18 -0700 (Sun, 09 Jun 2013)
New Revision: 2811

Modified:
   trunk/include/swobject.h
   trunk/utilities/lexdump.c
   trunk/utilities/mod2osis.cpp
   trunk/utilities/mod2zmod.cpp
Log:
assorted minor fixes for building in MSVC


Modified: trunk/include/swobject.h
===================================================================
--- trunk/include/swobject.h	2013-06-10 06:30:13 UTC (rev 2810)
+++ trunk/include/swobject.h	2013-06-10 06:59:18 UTC (rev 2811)
@@ -48,7 +48,7 @@
 * It is used because dynamic_cast is not available on all plattforms supported
 * by Sword. Use SWDYNAMIC_CAST(classname, object) instead of dynamic_cast<classname>(object).
 */
-class SWObject {
+class SWDLLEXPORT SWObject {
 protected:
 	SWClass * myclass;
      

Modified: trunk/utilities/lexdump.c
===================================================================
--- trunk/utilities/lexdump.c	2013-06-10 06:30:13 UTC (rev 2810)
+++ trunk/utilities/lexdump.c	2013-06-10 06:59:18 UTC (rev 2811)
@@ -19,6 +19,10 @@
  *
  */
 
+#ifdef _MSC_VER
+	#pragma warning( disable: 4996 )
+#endif
+
 #include <ctype.h>
 #include <stdio.h>
 #include <fcntl.h>

Modified: trunk/utilities/mod2osis.cpp
===================================================================
--- trunk/utilities/mod2osis.cpp	2013-06-10 06:30:13 UTC (rev 2810)
+++ trunk/utilities/mod2osis.cpp	2013-06-10 06:59:18 UTC (rev 2811)
@@ -24,6 +24,7 @@
 #include <fstream>
 #include <string>
 
+#include <swbuf.h>
 #include <ztext.h>
 #include <zld.h>
 #include <zcom.h>

Modified: trunk/utilities/mod2zmod.cpp
===================================================================
--- trunk/utilities/mod2zmod.cpp	2013-06-10 06:30:13 UTC (rev 2810)
+++ trunk/utilities/mod2zmod.cpp	2013-06-10 06:59:18 UTC (rev 2811)
@@ -32,6 +32,7 @@
 #include <unistd.h>
 #endif
 
+#include <swbuf.h>
 #include <ztext.h>
 #include <zld.h>
 #include <zcom.h>




More information about the sword-cvs mailing list