Add setvbuf(_IONBF) to fix terminal output for MSYS2.

master
AliceLR 5 years ago committed by Ozkan Sezer
parent c1eeea1d87
commit 2c52755ce2
  1. 1
      src/main.c

@ -252,6 +252,7 @@ int main(int argc, char **argv)
gettimeofday(&tv, &tz);
srand(tv.tv_usec);
#else
setvbuf(stderr, NULL, _IONBF, 0);
srand(GetTickCount());
#endif

Loading…
Cancel
Save