diff options
| author | pixel <pixel> | 2006-02-02 14:08:38 +0000 | 
|---|---|---|
| committer | pixel <pixel> | 2006-02-02 14:08:38 +0000 | 
| commit | e236671cbac9ec8d84f9833bf462d58e7e176658 (patch) | |
| tree | dd7b6934d38ad7c1ca9cb3acc13ace2b91ceeb0c /MSVC/readline/nls.c | |
| parent | 95c163e9d110a66cf9a8a5f632a784463a6512af (diff) | |
Removing a dozen of warnings.
Diffstat (limited to 'MSVC/readline/nls.c')
| -rw-r--r-- | MSVC/readline/nls.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/MSVC/readline/nls.c b/MSVC/readline/nls.c index 27c834a..ba28dca 100644 --- a/MSVC/readline/nls.c +++ b/MSVC/readline/nls.c @@ -19,7 +19,9 @@     is generally kept in a file called COPYING or LICENSE.  If you do not     have a copy of the license, write to the Free Software Foundation,     59 Temple Place, Suite 330, Boston, MA 02111 USA. */ +#ifndef READLINE_LIBRARY  #define READLINE_LIBRARY +#endif  #include "config.h" @@ -82,11 +84,9 @@ _rl_init_eightbit ()  /* If we have setlocale(3), just check the current LC_CTYPE category     value, and go into eight-bit mode if it's not C or POSIX. */  #if defined (HAVE_SETLOCALE) -  char *t; -  #ifndef _WIN32    /* Set the LC_CTYPE locale category from environment variables. */ -  t = setlocale (LC_CTYPE, ""); +  char * t = setlocale (LC_CTYPE, "");    if (t && *t && (t[0] != 'C' || t[1]) && (STREQ (t, "POSIX") == 0))      {  #endif | 
