From: Bruno Haible Date: Sun, 11 Jan 2026 00:22:52 +0000 (+0100) Subject: Improve support for clang on native Windows. X-Git-Tag: v1.0~22 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b761da94e2fdc6c8fc696590661443ee68f693c9;p=thirdparty%2Fgettext.git Improve support for clang on native Windows. * gettext-tools/src/write-mo.c (roundup): Treat clang like GCC. --- diff --git a/gettext-tools/src/write-mo.c b/gettext-tools/src/write-mo.c index e3b81fef4..35f0cd919 100644 --- a/gettext-tools/src/write-mo.c +++ b/gettext-tools/src/write-mo.c @@ -1,5 +1,5 @@ /* Writing binary .mo files. - Copyright (C) 1995-2025 Free Software Foundation, Inc. + Copyright (C) 1995-2026 Free Software Foundation, Inc. Written by Ulrich Drepper , April 1995. This program is free software: you can redistribute it and/or modify @@ -59,7 +59,7 @@ /* Usually defined in . */ #ifndef roundup -# if defined __GNUC__ && __GNUC__ >= 2 +# if (defined __GNUC__ && __GNUC__ >= 2) || defined __clang__ # define roundup(x, y) ({typeof(x) _x = (x); typeof(y) _y = (y); \ ((_x + _y - 1) / _y) * _y; }) # else