From 8e15570c5ba9955d20fb7f4898ee2be59c014ff3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Feb 2013 07:31:07 +0000 Subject: compilation fix for 32-bit targets git-svn-id: http://svn.miranda-ng.org/main/trunk@3447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/pu_stub/pu_stub.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'plugins/PluginUpdater/pu_stub/pu_stub.cpp') diff --git a/plugins/PluginUpdater/pu_stub/pu_stub.cpp b/plugins/PluginUpdater/pu_stub/pu_stub.cpp index 73a1f4146c..ef9d7f0352 100644 --- a/plugins/PluginUpdater/pu_stub/pu_stub.cpp +++ b/plugins/PluginUpdater/pu_stub/pu_stub.cpp @@ -16,15 +16,17 @@ HINSTANCE hInst; // current instance void log(const TCHAR *tszFormat, ...) { - FILE *out = fopen("c:\\temp\\pu.log", "a"); - if (out) { - va_list params; - va_start(params, &tszFormat); - _vftprintf(out, tszFormat, params); - va_end(params); - fputc('\n', out); - fclose(out); - } + #if defined(_DEBUG) + FILE *out = fopen("c:\\temp\\pu.log", "a"); + if (out) { + va_list params; + va_start(params, tszFormat); + _vftprintf(out, tszFormat, params); + va_end(params); + fputc('\n', out); + fclose(out); + } + #endif } int CreateDirectoryTreeW(const WCHAR* szDir) -- cgit v1.2.3