aboutsummaryrefslogtreecommitdiff
path: root/catgets
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-10 10:52:14 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:10 -0300
commitf68d36c788b423db7d15d67fe3c97951fb9a7fb6 (patch)
tree251afab30578b6514c54ed4d9c2d8faa50603583 /catgets
parentcd7206deed56fa8833ef8d46523476709e18635f (diff)
downloadglibc-f68d36c788b423db7d15d67fe3c97951fb9a7fb6.zip
glibc-f68d36c788b423db7d15d67fe3c97951fb9a7fb6.tar.gz
glibc-f68d36c788b423db7d15d67fe3c97951fb9a7fb6.tar.bz2
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 <config.h> ^
Diffstat (limited to 'catgets')
-rw-r--r--catgets/config.h14
-rw-r--r--catgets/gencat.c3
2 files changed, 2 insertions, 15 deletions
diff --git a/catgets/config.h b/catgets/config.h
deleted file mode 100644
index ce7887b..0000000
--- 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 <config.h>
-
-#endif
diff --git a/catgets/gencat.c b/catgets/gencat.c
index 7110970..52bdade 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 <https://www.gnu.org/licenses/>. */
+#define PACKAGE _libc_intl_domainname
#ifdef HAVE_CONFIG_H
-# include "config.h"
+# include <config.h>
#endif
#include <argp.h>