* misc.c [(MSWIN32 && !CONSOLE_LOG || MSWINCE) && !MSWINRT_FLAVOR
&& NO_GETENV_WIN32 && CPPCHECK] (GC_CreateLogFile): Define appendToFile
as macro (to FALSE) instead of a local variable; undefine appendToFile
at the function.
# else
TCHAR *logPath;
- BOOL appendToFile = FALSE;
+# if defined(NO_GETENV_WIN32) && defined(CPPCHECK)
+# define appendToFile FALSE
+# else
+ BOOL appendToFile = FALSE;
+# endif
# if !defined(NO_GETENV_WIN32) || !defined(OLD_WIN32_LOG_FILE)
TCHAR pathBuf[_MAX_PATH + 0x10]; /* buffer for path + ext */
/* Seek to file end (ignoring any error) */
}
# endif
+# undef appendToFile
# endif
return hFile;
}