]> err.no Git - util-linux/commitdiff
getopt: remove unnecessary ifdefs
authorKarel Zak <kzak@redhat.com>
Wed, 26 Nov 2008 13:25:25 +0000 (14:25 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 26 Nov 2008 13:25:25 +0000 (14:25 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
getopt/Makefile.am
getopt/getopt.c

index 644d641180e7f3280c74bbc5749fce0fd5113351..58ae7fc38292a036541569267d17c7acf1e8a7dc 100644 (file)
@@ -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/
index 10396a0c6c8e868448c348583743537efa2050cb..29735e51267a3cfbfb90eec343a761fec8c37318 100644 (file)
 #include <string.h>
 #include <unistd.h>
 #include <ctype.h>
-
-#if LIBCGETOPT
 #include <getopt.h>
-#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();