From 9dfa71f71cd0665ec2b5d45d7e9ae9a35ab74011 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 12 Dec 2022 19:46:17 +0100 Subject: [PATCH] Remove code conditional on S_SPLINT_S MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don't know for sure what that is, but it's redefining setlocale(3) and LC_ALL, which is are defined by C99, so it's supect of being some variety of an extinct dynosaur. Maybe related to the Dodo. Link: Cc: Christian Göttsche Cc: Iker Pedrosa Cc: Mike Frysinger Signed-off-by: Alejandro Colomar --- lib/defines.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/defines.h b/lib/defines.h index 748e18da..2a6189f8 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -7,17 +7,6 @@ #include "config.h" #include - -/* Take care of NLS matters. */ -#ifdef S_SPLINT_S -extern char *setlocale(int categories, const char *locale); -# define LC_ALL (6) -extern char * bindtextdomain (const char * domainname, const char * dirname); -extern char * textdomain (const char * domainname); -# define _(Text) Text -# define ngettext(Msgid1, Msgid2, N) \ - ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) -#else #include #define gettext_noop(String) (String) @@ -35,7 +24,6 @@ extern char * textdomain (const char * domainname); # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) #endif -#endif #include #include