From a9197f5d5921263a042979b0d14fc2c61e411320 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 11 May 2015 15:20:06 +0000 Subject: minus CreateThread git-svn-id: http://svn.miranda-ng.org/main/trunk@13543 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WhenWasIt/src/utils.cpp | 48 ++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'plugins/WhenWasIt/src/utils.cpp') diff --git a/plugins/WhenWasIt/src/utils.cpp b/plugins/WhenWasIt/src/utils.cpp index 11f10e26e6..56db42471e 100644 --- a/plugins/WhenWasIt/src/utils.cpp +++ b/plugins/WhenWasIt/src/utils.cpp @@ -31,30 +31,30 @@ int LogInit() int Log(char *format, ...) { - #ifdef _DEBUG - char str[4096]; - va_list vararg; - int tBytes; - FILE *fout = fopen(LOG_FILE, "at"); - if (!fout) - return -1; - - time_t tNow = time(NULL); - struct tm *now = localtime(&tNow); - strftime(str, sizeof(str), "%d %b %Y @ %H:%M:%S: ", now); - fputs(str, fout); - va_start(vararg, format); - - tBytes = mir_vsnprintf(str, sizeof(str), format, vararg); - if (tBytes > 0) - str[tBytes] = 0; - - va_end(vararg); - if (str[strlen(str) - 1] != '\n') - strcat(str, "\n"); - fputs(str, fout); - fclose(fout); - #endif +#ifdef _DEBUG + char str[4096]; + va_list vararg; + int tBytes; + FILE *fout = fopen(LOG_FILE, "at"); + if (!fout) + return -1; + + time_t tNow = time(NULL); + struct tm *now = localtime(&tNow); + strftime(str, sizeof(str), "%d %b %Y @ %H:%M:%S: ", now); + fputs(str, fout); + va_start(vararg, format); + + tBytes = mir_vsnprintf(str, sizeof(str), format, vararg); + if (tBytes > 0) + str[tBytes] = 0; + + va_end(vararg); + if (str[strlen(str) - 1] != '\n') + strcat(str, "\n"); + fputs(str, fout); + fclose(fout); +#endif return 0; } -- cgit v1.2.3