From: Bruno Haible Date: Sun, 10 Aug 2025 20:03:19 +0000 (+0200) Subject: Rely more on Gnulib. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1cbf5dd77a75f62c9ab4a13b60838d403f59104;p=thirdparty%2Fgettext.git Rely more on Gnulib. * gettext-tools/src/write-java.c (S_*): Remove macros, relying on gnulib module sys_stat-h. * gettext-tools/src/write-csharp.c (S_*): Likewise. --- diff --git a/gettext-tools/src/write-csharp.c b/gettext-tools/src/write-csharp.c index 312662dc9..539709225 100644 --- a/gettext-tools/src/write-csharp.c +++ b/gettext-tools/src/write-csharp.c @@ -26,47 +26,7 @@ #include #include #include - #include -#if !defined S_ISDIR && defined S_IFDIR -# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) -#endif -#if !S_IRUSR && S_IREAD -# define S_IRUSR S_IREAD -#endif -#if !S_IRUSR -# define S_IRUSR 00400 -#endif -#if !S_IWUSR && S_IWRITE -# define S_IWUSR S_IWRITE -#endif -#if !S_IWUSR -# define S_IWUSR 00200 -#endif -#if !S_IXUSR && S_IEXEC -# define S_IXUSR S_IEXEC -#endif -#if !S_IXUSR -# define S_IXUSR 00100 -#endif -#if !S_IRGRP -# define S_IRGRP (S_IRUSR >> 3) -#endif -#if !S_IWGRP -# define S_IWGRP (S_IWUSR >> 3) -#endif -#if !S_IXGRP -# define S_IXGRP (S_IXUSR >> 3) -#endif -#if !S_IROTH -# define S_IROTH (S_IRUSR >> 6) -#endif -#if !S_IWOTH -# define S_IWOTH (S_IWUSR >> 6) -#endif -#if !S_IXOTH -# define S_IXOTH (S_IXUSR >> 6) -#endif #include #include "attribute.h" diff --git a/gettext-tools/src/write-java.c b/gettext-tools/src/write-java.c index 9feffbc5e..14aacbea9 100644 --- a/gettext-tools/src/write-java.c +++ b/gettext-tools/src/write-java.c @@ -27,29 +27,7 @@ #include #include #include - #include -#if !defined S_ISDIR && defined S_IFDIR -# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) -#endif -#if !S_IRUSR && S_IREAD -# define S_IRUSR S_IREAD -#endif -#if !S_IRUSR -# define S_IRUSR 00400 -#endif -#if !S_IWUSR && S_IWRITE -# define S_IWUSR S_IWRITE -#endif -#if !S_IWUSR -# define S_IWUSR 00200 -#endif -#if !S_IXUSR && S_IEXEC -# define S_IXUSR S_IEXEC -#endif -#if !S_IXUSR -# define S_IXUSR 00100 -#endif #include #include "attribute.h"