OSDN Git Service

[Qt][Logger][Win32] Use fflush at the end of a line, workaround for CYGWIN.
authorKyuma Ohta <whatisthis.sowhat@gmail.com>
Thu, 10 Mar 2016 10:08:17 +0000 (19:08 +0900)
committerKyuma Ohta <whatisthis.sowhat@gmail.com>
Thu, 10 Mar 2016 10:08:17 +0000 (19:08 +0900)
source/src/qt/common/agar_logger.cpp

index ef10dc0..2e2a42b 100644 (file)
@@ -101,6 +101,9 @@ void AGAR_DebugLog(int level, const char *fmt, ...)
                                p = strtok_r(NULL, delim, &p_bak);
 #endif
                        }
+#if defined(Q_OS_WIN)
+                       fflush(stdout);
+#endif                 
                } while(p != NULL);
        }
        va_end(ap);