From b761da94e2fdc6c8fc696590661443ee68f693c9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 11 Jan 2026 01:22:52 +0100 Subject: [PATCH] Improve support for clang on native Windows. * gettext-tools/src/write-mo.c (roundup): Treat clang like GCC. --- gettext-tools/src/write-mo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3