Eliminate include of <ctype.h>.
authorGuy Harris <guy@alum.mit.edu>
Fri, 17 Oct 2014 07:02:08 +0000 (00:02 -0700)
committerGuy Harris <guy@alum.mit.edu>
Fri, 17 Oct 2014 07:02:37 +0000 (07:02 +0000)
This is not built if we have glibc (as we already have getopt() from
it), and it's not part of glibc, so....

Change-Id: Iae4ff944c78fc55a8cd2eaf523a3696c47b741d7
Reviewed-on: https://code.wireshark.org/review/4769
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wsutil/wsgetopt.h

index b497914dec0dab546f70bbefb92be48592e54ffa..b2a981693b52ccfed2ee71e8f6de8d88cd191e08 100644 (file)
 
 #include "ws_symbol_export.h"
 
-/* If __GNU_LIBRARY__ is not already defined, either we are being used
-   standalone, or this is the first header included in the source file.
-   If we are being used with glibc, we need to include <features.h>, but
-   that does not exist if we are standalone.  So: if __GNU_LIBRARY__ is
-   not defined, include <ctype.h>, which will pull in <features.h> for us
-   if it's from glibc.  (Why ctype.h?  It's guaranteed to exist and it
-   doesn't flood the namespace with stuff the way some other headers do.)  */
-#if !defined __GNU_LIBRARY__
-# include <ctype.h>
-#endif
-
 #ifndef __THROW
 # ifndef __GNUC_PREREQ
 #  define __GNUC_PREREQ(maj, min) (0)