Remove ELIDE_CODE hack.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Aug 2004 07:59:56 +0000 (07:59 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Aug 2004 07:59:56 +0000 (07:59 +0000)
lib/getopt.c
lib/getopt1.c

index 8f017f87b14435b407a44576ee87f4eb2ad7bcef..95b3604f892d4e2ed66fdc6be0b6bdb36af9d2ff 100644 (file)
 
 #include <stdio.h>
 
-/* Comment out all this code if we are using the GNU C Library, and are not
-   actually compiling the library itself.  This code is part of the GNU C
-   Library, but also included in many other GNU distributions.  Compiling
-   and linking in this code is a waste when using the GNU C library
-   (especially if it is a shared library).  Rather than having every GNU
-   program understand `configure --with-gnu-libc' and omit the object files,
-   it is simpler to just do this in the source for each such file.  */
-
-#define GETOPT_INTERFACE_VERSION 2
-#if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2
-# include <gnu-versions.h>
-# if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION
-#  define ELIDE_CODE
-# endif
-#endif
-
-#ifndef ELIDE_CODE
-
-
 /* This needs to come after some library #include
    to get __GNU_LIBRARY__ defined.  */
 #ifdef __GNU_LIBRARY__
@@ -1181,7 +1162,6 @@ getopt (int argc, char *const *argv, const char *optstring)
                           0);
 }
 
-#endif /* Not ELIDE_CODE.  */
 \f
 #ifdef TEST
 
index 7671eba3737a3aa5c62701def0cd58b1c12734a8..706f59c08377edabb0ff72f84d168828db20effa 100644 (file)
 
 #include <stdio.h>
 
-/* Comment out all this code if we are using the GNU C Library, and are not
-   actually compiling the library itself.  This code is part of the GNU C
-   Library, but also included in many other GNU distributions.  Compiling
-   and linking in this code is a waste when using the GNU C library
-   (especially if it is a shared library).  Rather than having every GNU
-   program understand `configure --with-gnu-libc' and omit the object files,
-   it is simpler to just do this in the source for each such file.  */
-
-#define GETOPT_INTERFACE_VERSION 2
-#if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2
-#include <gnu-versions.h>
-#if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION
-#define ELIDE_CODE
-#endif
-#endif
-
-#ifndef ELIDE_CODE
-
-
 /* This needs to come after some library #include
    to get __GNU_LIBRARY__ defined.  */
 #ifdef __GNU_LIBRARY__
@@ -96,7 +77,6 @@ _getopt_long_only_r (int argc, char *const *argv, const char *options,
                             1, d);
 }
 
-#endif /* Not ELIDE_CODE.  */
 \f
 #ifdef TEST