]> Dogcows Code - chaz/tar/commitdiff
Do not comment out all the code if we are using the GNU C library,
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Nov 2000 00:23:21 +0000 (00:23 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Nov 2000 00:23:21 +0000 (00:23 +0000)
because in some cases we are replacing buggy code in the GNU C library itself.

lib/fnmatch.c

index ce55c7ff04b6a6936899e6348c9aecdda72a5b5f..8499a462d2b7c714b7e093c72005accf7ee25a6f 100644 (file)
 #include <fnmatch.h>
 #include <ctype.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.  */
-
-#if defined _LIBC || !defined __GNU_LIBRARY__
-
-
 # if defined STDC_HEADERS || !defined isascii
 #  define IN_CTYPE_DOMAIN(c) 1
 # else
-#  define IN_CTYPE_DOMAIN(c) isascii(c)
+#  define IN_CTYPE_DOMAIN(c) isascii (c)
 # endif
 
 # define ISUPPER(c) (IN_CTYPE_DOMAIN (c) && isupper (c))
@@ -240,5 +228,3 @@ fnmatch (const char *pattern, const char *string, int flags)
 
 # undef FOLD
 }
-
-#endif /* _LIBC or not __GNU_LIBRARY__.  */
This page took 0.029516 seconds and 4 git commands to generate.