From: Karel Zak Date: Wed, 26 Nov 2008 13:25:25 +0000 (+0100) Subject: getopt: remove unnecessary ifdefs X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7327f20924a993a55573666149149b72ea8af32;p=util-linux getopt: remove unnecessary ifdefs Signed-off-by: Karel Zak --- diff --git a/getopt/Makefile.am b/getopt/Makefile.am index 644d6411..58ae7fc3 100644 --- a/getopt/Makefile.am +++ b/getopt/Makefile.am @@ -1,9 +1,6 @@ include $(top_srcdir)/config/include-Makefile.am usrbinexec_PROGRAMS = getopt - -getopt_CPPFLAGS = -DLIBCGETOPT=1 $(AM_CPPFLAGS) - dist_man_MANS = getopt.1 exampledir = $(datadir)/getopt/ diff --git a/getopt/getopt.c b/getopt/getopt.c index 10396a0c..29735e51 100644 --- a/getopt/getopt.c +++ b/getopt/getopt.c @@ -44,12 +44,7 @@ #include #include #include - -#if LIBCGETOPT #include -#else -#include "getopt.h" -#endif #include "nls.h" @@ -373,12 +368,9 @@ int main(int argc, char *argv[]) int opt; int compatible=0; -#if WITHOUT_GETTEXT -#else setlocale(LC_ALL,""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); -#endif init_longopt();