OSDN Git Service

Some Makefile improvements.
[lamexp/LameXP.git] / etc / Patches / MAC-v4.16-Flush.V1.diff
1  Source/Console/Console.cpp | 3 +++
2  1 file changed, 3 insertions(+)
3
4 diff --git a/Source/Console/Console.cpp b/Source/Console/Console.cpp
5 index 145d4af..a4a8256 100644
6 --- a/Source/Console/Console.cpp
7 +++ b/Source/Console/Console.cpp
8 @@ -64,6 +64,9 @@ void CALLBACK ProgressCallback(int nPercentageDone)
9         // output the progress
10         _ftprintf(stderr, _T("Progress: %.1f%% (%.1f seconds remaining, %.1f seconds total)          \r"), 
11                 dProgress * 100, dRemaining, dElapsed);
12 +
13 +       //Don't forget to flush!
14 +       fflush(stderr);
15  }
16  
17  /***************************************************************************************