diff options
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 |