diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-06 07:31:07 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-06 07:31:07 +0000 |
commit | 8e15570c5ba9955d20fb7f4898ee2be59c014ff3 (patch) | |
tree | e428545d9d3c23e8aeed593dd6083aeaa7d85d89 /plugins/PluginUpdater | |
parent | c8af098afc491e8e698b28f65491677d24016324 (diff) |
compilation fix for 32-bit targets
git-svn-id: http://svn.miranda-ng.org/main/trunk@3447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/pu_stub/pu_stub.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
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)
|