diff options
Diffstat (limited to 'graphics/pngnq/files/patch-errors.h')
-rw-r--r-- | graphics/pngnq/files/patch-errors.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/pngnq/files/patch-errors.h b/graphics/pngnq/files/patch-errors.h new file mode 100644 index 000000000000..b230035ad678 --- /dev/null +++ b/graphics/pngnq/files/patch-errors.h @@ -0,0 +1,18 @@ +--- src/errors.h.orig 2011-04-14 19:57:13.000000000 +0400 ++++ src/errors.h 2011-04-14 20:00:25.000000000 +0400 +@@ -20,9 +20,11 @@ + PNGNQ_LOG_ERR(__VA_ARGS__)\ + fflush(stderr); + +-#define PNGNQ_WARNING(...) (fprintf(stderr,"pngnq - Warning: "));\ +- fprintf(stderr, __VA_ARGS__);\ +- PNGNQ_LOG_WARNING(__VA_ARGS__)\ +- fflush(stderr); ++#define PNGNQ_WARNING(...) \ ++ do { \ ++ fprintf(stderr, "pngnq - Warning: " __VA_ARGS__); \ ++ PNGNQ_LOG_WARNING(__VA_ARGS__) \ ++ fflush(stderr); \ ++ } while (0) + + #define PNGNQ_MESSAGE(...) {if(verbose) {fprintf(stderr,__VA_ARGS__);fflush(stderr);}} |