X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrftime.c;h=7d64c15264634bf6df2eea42aa0a34b3af14711d;hb=964a52336aad0cf4a4d6c08c128560c87742c921;hp=7f06d6fda24d6a89090b1b4f3b482a7966845907;hpb=119ae5514681e42839f83a4993021a222ec45daa;p=gnulib.git diff --git a/lib/strftime.c b/lib/strftime.c index 7f06d6fda..7d64c1526 100644 --- a/lib/strftime.c +++ b/lib/strftime.c @@ -199,6 +199,8 @@ extern char *tzname[]; #if FPRINTFTIME # define cpy(n, s) \ add ((n), \ + do \ + { \ if (to_lowcase) \ fwrite_lowcase (p, (s), _n); \ else if (to_uppcase) \ @@ -211,8 +213,11 @@ extern char *tzname[]; is intended to be consistent with the one from ISO C, \ which permits failure due to ENOMEM *without* setting the \ stream's error indicator. */ \ - ignore_value (fwrite ((s), _n, 1, p))); \ - } + ignore_value (fwrite ((s), _n, 1, p)); \ + } \ + } \ + while (0) \ + ) #else # define cpy(n, s) \ add ((n), \