cannot use if in cli_dbgmsg() macro

git-svn: trunk@3646
This commit is contained in:
Török Edvin
2008-02-16 15:05:27 +00:00
parent b309ed2f61
commit aeebf2ea28
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
Sat Feb 16 16:52:00 EET 2008 (edwin)
------------------------------------
* libclamav/others.h: cannot use if in cli_dbgmsg() macro
Sat Feb 16 13:45:01 EET 2008 (edwin)
------------------------------------
* configure, configure.in: AC_TRY_COMPILE already wraps its args with int

View File

@@ -217,7 +217,7 @@ void cli_errmsg(const char *str, ...);
#define UNLIKELY(cond) (cond)
#endif
#define cli_dbgmsg if(UNLIKELY(cli_debug_flag)) cli_dbgmsg_internal
#define cli_dbgmsg (!UNLIKELY(cli_debug_flag)) ? (void)0 : cli_dbgmsg_internal
#ifdef __GNUC__
void cli_dbgmsg_internal(const char *str, ...) __attribute__((format(printf, 1, 2)));