[sword-svn] r2074 - trunk/src/utilfuns

scribe at www.crosswire.org scribe at www.crosswire.org
Mon Sep 3 20:02:56 MST 2007


Author: scribe
Date: 2007-09-03 20:02:55 -0700 (Mon, 03 Sep 2007)
New Revision: 2074

Modified:
   trunk/src/utilfuns/swobject.cpp
Log:
added charcoal's patch to fix cygwin compile


Modified: trunk/src/utilfuns/swobject.cpp
===================================================================
--- trunk/src/utilfuns/swobject.cpp	2007-09-03 22:09:54 UTC (rev 2073)
+++ trunk/src/utilfuns/swobject.cpp	2007-09-04 03:02:55 UTC (rev 2074)
@@ -21,14 +21,23 @@
 */
 
 #include <swobject.h>
+
+// hack.  remove this when we figure out our link error
+#ifndef __CYGWIN__
 #include <utilstr.h>
+#else
+#include <string.h>
+#endif
 
-
 SWORD_NAMESPACE_START
 
 bool SWClass::isAssignableFrom(const char *className) const {
 	for (int i = 0; descends[i]; i++) {
+#ifndef __CYGWIN__
 		if (!sword::stricmp(descends[i], className))
+#else
+		if (!stricmp(descends[i], className))
+#endif
 			return true;
 	}
 	return false;




More information about the sword-cvs mailing list