diff --git a/src/xlibi18n/lcUtil.c b/src/xlibi18n/lcUtil.c index 2ff86aba..cd4cc774 100644 --- a/src/xlibi18n/lcUtil.c +++ b/src/xlibi18n/lcUtil.c @@ -32,9 +32,10 @@ /* Don't use here because it is locale dependent. */ -#define set_toupper(ch) \ +#define set_toupper(ch) do { \ if (ch >= 'a' && ch <= 'z') \ - ch = (unsigned char) (ch - 'a' + 'A'); + ch = (unsigned char) (ch - 'a' + 'A'); \ +} while (0) /* Compares two ISO 8859-1 strings, ignoring case of ASCII letters. Like strcasecmp in an ASCII locale. */