From: Jesse Thilo Date: Wed, 30 Dec 1998 05:19:09 +0000 (+0000) Subject: Include unistd.h and ctype.h. X-Git-Tag: GNU_1_26~19 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/7bb4d91420706c096e339dffe2ce24a361fb67a5 Include unistd.h and ctype.h. Use #ifdef instead of #if for NLS symbols. --- diff --git a/src/system.h b/src/system.h index a52a34a5..36652456 100644 --- a/src/system.h +++ b/src/system.h @@ -19,6 +19,10 @@ #include #endif +#if defined(HAVE_UNISTD_H) +#include +#endif + #if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H) #define HAVE_STRING_H 1 #endif @@ -37,14 +41,18 @@ /* memory.h and strings.h conflict on some systems. */ #endif /* not STDC_HEADERS and not HAVE_STRING_H */ -#if HAVE_LOCALE_H +#if defined(STDC_HEADERS) || defined(HAVE_CTYPE_H) +#include +#endif + +#ifdef HAVE_LOCALE_H # include #endif -#if !HAVE_SETLOCALE +#ifndef HAVE_SETLOCALE # define setlocale(Category, Locale) #endif -#if ENABLE_NLS +#ifdef ENABLE_NLS # include # define _(Text) gettext (Text) #else