MinGW fix
authorNils Durner <durner@gnunet.org>
Tue, 25 Aug 2009 19:49:51 +0000 (19:49 +0000)
committerNils Durner <durner@gnunet.org>
Tue, 25 Aug 2009 19:49:51 +0000 (19:49 +0000)
src/util/test_configuration.c

index 2f37c684ce143a702e2e164bc703d55e69640f4a..6a2fda6998c08ebd77ea4f0cc7f9fa59ae553008 100644 (file)
@@ -67,7 +67,12 @@ testConfig ()
   if (GNUNET_OK !=
       GNUNET_CONFIGURATION_get_value_filename (cfg, "last", "test", &c))
     return 8;
+#ifndef MINGW
   if (0 != strcmp (c, "/hello/world"))
+#else
+  #define HI "\\hello\\world"
+  if (strstr (c, HI) != c + strlen (c) - strlen (HI))
+#endif
     {
       GNUNET_free (c);
       return 9;