]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
catgets: Remove catgets/config.h
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 17 Oct 2025 19:12:52 +0000 (16:12 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 21 Oct 2025 12:24:19 +0000 (09:24 -0300)
It simplifies the code a bit and avoid the clang warning:

  ./config.h:12:2: error: #include_next in file found relative to primary
  source file or found by absolute path; will search from start of include
  path [-Werror,-Winclude-next-absolute-path]
  #include_next <config.h>
   ^

Reviewed-by: Sam James <sam@gentoo.org>
catgets/config.h [deleted file]
catgets/gencat.c

diff --git a/catgets/config.h b/catgets/config.h
deleted file mode 100644 (file)
index ce7887b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef _CG_CONFIG_H
-#define _CG_CONFIG_H
-
-/* Use the internal textdomain used for libc messages.  */
-#define PACKAGE _libc_intl_domainname
-#ifndef VERSION
-/* Get libc version number.  */
-#include "../version.h"
-#endif
-
-
-#include_next <config.h>
-
-#endif
index 6a53a72eec1bb5a67474e4b043aa95fbbef7a10b..835dd06e3322689e588b9fe9cde294c22378c2fb 100644 (file)
@@ -14,8 +14,9 @@
    You should have received a copy of the GNU General Public License
    along with this program; if not, see <https://www.gnu.org/licenses/>.  */
 
+#define PACKAGE _libc_intl_domainname
 #ifdef HAVE_CONFIG_H
-# include "config.h"
+# include <config.h>
 #endif
 
 #include <argp.h>