update-copyright: generalize comment handling
[gnulib.git] / tests / test-fflush2.c
index 5ec1e55..a395c6d 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <stdlib.h>
 
+#include "binary-io.h"
+
 #define ASSERT(expr) \
   do                                                                        \
     {                                                                       \
@@ -37,6 +39,10 @@ main (int argc, char **argv)
 {
   int c;
 
+  /* Avoid the well-known bugs of fflush() on streams in O_TEXT mode
+     on native Windows platforms.  */
+  SET_BINARY (0);
+
   if (argc > 1)
     switch (argv[1][0])
       {