diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-20 02:10:15 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-20 02:10:15 +0000 |
commit | 529a7c21fd1950e3a1e5a4ec429b6e2c12f619d8 (patch) | |
tree | 9a4e62d84b9123b7ed14fbe3f071e1d5436e6487 /lib/getopt1.c | |
parent | 463f2060b7f399676d25a598aa4ec45ec8e3cb07 (diff) | |
download | coreutils-529a7c21fd1950e3a1e5a4ec429b6e2c12f619d8.tar.xz |
Sync getopt from gnulib.
Diffstat (limited to 'lib/getopt1.c')
-rw-r--r-- | lib/getopt1.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/getopt1.c b/lib/getopt1.c index 7671eba37..706f59c08 100644 --- a/lib/getopt1.c +++ b/lib/getopt1.c @@ -30,25 +30,6 @@ #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. */ #ifdef TEST |