|
|
|
|
@ -11,8 +11,7 @@
|
|
|
|
|
#include "debug_config.h" |
|
|
|
|
#include <stdio.h> |
|
|
|
|
#include <stdlib.h> |
|
|
|
|
#include <time.h> |
|
|
|
|
#include <stdlib.h> |
|
|
|
|
#include <time.h> |
|
|
|
|
#include <string.h> |
|
|
|
|
#include <unistd.h> |
|
|
|
|
#include <fcntl.h> |
|
|
|
|
@ -232,12 +231,7 @@ static FILE* open_logfile(const char *logfile) {
|
|
|
|
|
return stderr; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Set line buffering (Windows uses _IOLBF via setvbuf)
|
|
|
|
|
#ifdef _WIN32 |
|
|
|
|
setvbuf(fp, NULL, _IOLBF, 0); |
|
|
|
|
#else |
|
|
|
|
setlinebuf(fp); |
|
|
|
|
#endif |
|
|
|
|
return fp; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|