mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-22 23:56:01 +00:00
Merge pull request #150 from librehat/master
add fflush stderr on Windows.
This commit is contained in:
+4
-2
@@ -98,7 +98,8 @@ extern FILE * logfile;
|
||||
time_t now = time(NULL); \
|
||||
char timestr[20]; \
|
||||
strftime(timestr, 20, TIME_FORMAT, localtime(&now)); \
|
||||
fprintf(stderr, " %s INFO: " format "\n", timestr, ## __VA_ARGS__); } \
|
||||
fprintf(stderr, " %s INFO: " format "\n", timestr, ## __VA_ARGS__); \
|
||||
fflush(stderr); } \
|
||||
while (0)
|
||||
|
||||
#define LOGE(format, ...) \
|
||||
@@ -106,7 +107,8 @@ extern FILE * logfile;
|
||||
time_t now = time(NULL); \
|
||||
char timestr[20]; \
|
||||
strftime(timestr, 20, TIME_FORMAT, localtime(&now)); \
|
||||
fprintf(stderr, " %s ERROR: " format "\n", timestr, ## __VA_ARGS__); } \
|
||||
fprintf(stderr, " %s ERROR: " format "\n", timestr, ## __VA_ARGS__); \
|
||||
fflush(stderr); } \
|
||||
while (0)
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user