]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Remove code conditional on S_SPLINT_S
authorAlejandro Colomar <alx@kernel.org>
Mon, 12 Dec 2022 18:46:17 +0000 (19:46 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 15 Dec 2022 22:22:05 +0000 (16:22 -0600)
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: <https://github.com/shadow-maint/shadow/pull/600>
Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/defines.h

index 748e18da04c25a78d60274b233236cc3f0192024..2a6189f8cd222dac6ba7eea36c7b2d9fc0b37d33 100644 (file)
@@ -7,17 +7,6 @@
 #include "config.h"
 
 #include <stdbool.h>
-
-/* 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 <locale.h>
 
 #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 <stdlib.h>
 #include <string.h>