]> err.no Git - pkg-config/commitdiff
Print out \r\n on windows, not just \n master
authorTollef Fog Heen <tfheen@err.no>
Sun, 6 Dec 2009 21:34:35 +0000 (22:34 +0100)
committerTollef Fog Heen <tfheen@err.no>
Sun, 6 Dec 2009 21:34:35 +0000 (22:34 +0100)
This should hopefully fix bug #17053

main.c

diff --git a/main.c b/main.c
index df25aaaff2434d2f790f895b8b4ef1d66fb35750..b9442fc0602fe2566190f005359d7c5aca5daa3d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -645,7 +645,11 @@ main (int argc, char **argv)
     }
 
   if (need_newline)
+#ifdef G_OS_WIN32
+    printf ("\r\n");
+#else
     printf ("\n");
+#endif
 
   return 0;
 }