e: Fix macro so it can be used as a statement

Should fix devilhorn's compile error.

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 61783
This commit is contained in:
Mike McCormack 2011-07-27 02:35:03 +00:00 committed by Mike McCormack
parent 015e05f81f
commit e32856d084
1 changed files with 2 additions and 2 deletions

View File

@ -1,12 +1,12 @@
#ifdef E_TYPEDEFS #ifdef E_TYPEDEFS
#define e_error_message_show(args...) \ #define e_error_message_show(args...) do \
{ \ { \
char __tmpbuf[PATH_MAX]; \ char __tmpbuf[PATH_MAX]; \
\ \
snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \ snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \
e_error_message_show_internal(__tmpbuf); \ e_error_message_show_internal(__tmpbuf); \
} } while (0)
#else #else
#ifndef E_ERROR_H #ifndef E_ERROR_H