Various WIN32 fixes.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 15 Dec 2002 20:02:04 +0000 (20:02 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Sun, 15 Dec 2002 20:02:04 +0000 (20:02 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@230 cb58f699-b61c-0410-a6fe-9272a202ed29

shib-target/shib-ini.cpp
shib-target/shib-rpcutil.c

index f332089..3d89814 100644 (file)
@@ -6,6 +6,13 @@
  * $Id$
  */
 
+// eventually we might be able to support autoconf via cygwin...
+#if defined (_MSC_VER) || defined(__BORLANDC__)
+# include "config_win32.h"
+#else
+# include "config.h"
+#endif
+
 #include "shib-target.h"
 #include <sstream>
 #include <iostream>
@@ -376,7 +383,12 @@ const string* TagIterator::next ()
 bool ShibINI::boolean(string& value)
 {
   const char* v = value.c_str();
+#ifdef HAVE_STRCASECMP
   if (!strncasecmp (v, "on", 2) || !strncasecmp (v, "true", 4) || !strncmp(v, "1", 1))
     return true;
+#else
+  if (!strnicmp (v, "on", 2) || !strnicmp (v, "true", 4) || !strncmp(v, "1", 1))
+    return true;
+#endif
   return false;
 }
index 231046e..5491a0e 100644 (file)
 # include <sys/socket.h>
 #endif
 
-#include "config.h"
+// eventually we might be able to support autoconf via cygwin...
+#if defined (_MSC_VER) || defined(__BORLANDC__)
+# include "config_win32.h"
+#else
+# include "config.h"
+#endif
 
 #include "shib-target.h"