]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Improve support for clang on native Windows.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Jan 2026 00:22:52 +0000 (01:22 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Jan 2026 00:22:52 +0000 (01:22 +0100)
* gettext-tools/src/write-mo.c (roundup): Treat clang like GCC.

gettext-tools/src/write-mo.c

index e3b81fef41fa33952f5914829ff3c351c1079a40..35f0cd919df462978feedd9184b1b9e0b3c6c154 100644 (file)
@@ -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 <drepper@gnu.ai.mit.edu>, April 1995.
 
    This program is free software: you can redistribute it and/or modify
@@ -59,7 +59,7 @@
 
 /* Usually defined in <sys/param.h>.  */
 #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