From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id B49833857B8B; Thu, 21 Dec 2023 18:52:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B49833857B8B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703184759; bh=C3/cbqVjfdfuFHusRPnNJXGHmJ5KBEKFFHBNV9BRPos=; h=From:To:Subject:Date:From; b=oFPCKJmizQwhGONMs2WZBXNkjTgcGpwpMLk2Ycy56MeIj5jmutQqCPsjVp1OXOE5g 2mGb8kZxv87Sn9Wm0jy2zOBBoPCnOPo7+RnzvpcdC/SBwXb3KoRYaARElEAjhYWjQm o5655QwMjltHlA9+EbAAcBXV4QUNhhoTbW0V+9dk= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] catgets: Remove catgets/config.h X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 1d9a8c6c6c9ba62993292f0547991f051705b917 X-Git-Newrev: 4f5c749a9508a65afa886182c1e0b857b4e6e5f2 Message-Id: <20231221185239.B49833857B8B@sourceware.org> Date: Thu, 21 Dec 2023 18:52:39 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4f5c749a9508a65afa886182c1e0b857b4e6e5f2 commit 4f5c749a9508a65afa886182c1e0b857b4e6e5f2 Author: Adhemerval Zanella Date: Thu Mar 10 10:52:14 2022 -0300 catgets: Remove catgets/config.h 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 ^ Diff: --- catgets/config.h | 14 -------------- catgets/gencat.c | 3 ++- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/catgets/config.h b/catgets/config.h deleted file mode 100644 index ce7887b351..0000000000 --- a/catgets/config.h +++ /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 - -#endif diff --git a/catgets/gencat.c b/catgets/gencat.c index 63bdbf86a6..bfb40e6f2a 100644 --- a/catgets/gencat.c +++ b/catgets/gencat.c @@ -14,8 +14,9 @@ You should have received a copy of the GNU General Public License along with this program; if not, see . */ +#define PACKAGE _libc_intl_domainname #ifdef HAVE_CONFIG_H -# include "config.h" +# include #endif #include