strtol: remove dependency on wchar
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Apr 2011 07:45:04 +0000 (00:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Apr 2011 08:07:30 +0000 (01:07 -0700)
* lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
* modules/strtol (Depends-on): Remove wchar.

ChangeLog
lib/strtol.c
modules/strtol

index c9f717e..6df0d4e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       strtol: remove dependency on wchar
+       * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
+       * modules/strtol (Depends-on): Remove wchar.
+
 2011-04-21  Eric Blake  <eblake@redhat.com>
 
        passfd: fix test regression on Linux
index b6a761e..6c15d11 100644 (file)
 # define LOCALE_PARAM_PROTO
 #endif
 
-#include <wchar.h>
-
 #ifdef USE_WIDE_CHAR
+# include <wchar.h>
 # include <wctype.h>
 # define L_(Ch) L##Ch
 # define UCHAR_TYPE wint_t
index 8a313a4..d06a55b 100644 (file)
@@ -6,7 +6,6 @@ lib/strtol.c
 m4/strtol.m4
 
 Depends-on:
-wchar
 
 configure.ac:
 gl_FUNC_STRTOL
@@ -21,4 +20,3 @@ LGPL
 
 Maintainer:
 glibc
-