mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +00:00
Include unistd.h and ctype.h.
Use #ifdef instead of #if for NLS symbols.
This commit is contained in:
14
src/system.h
14
src/system.h
@@ -19,6 +19,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_UNISTD_H)
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
|
#if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
|
||||||
#define HAVE_STRING_H 1
|
#define HAVE_STRING_H 1
|
||||||
#endif
|
#endif
|
||||||
@@ -37,14 +41,18 @@
|
|||||||
/* memory.h and strings.h conflict on some systems. */
|
/* memory.h and strings.h conflict on some systems. */
|
||||||
#endif /* not STDC_HEADERS and not HAVE_STRING_H */
|
#endif /* not STDC_HEADERS and not HAVE_STRING_H */
|
||||||
|
|
||||||
#if HAVE_LOCALE_H
|
#if defined(STDC_HEADERS) || defined(HAVE_CTYPE_H)
|
||||||
|
#include <ctype.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LOCALE_H
|
||||||
# include <locale.h>
|
# include <locale.h>
|
||||||
#endif
|
#endif
|
||||||
#if !HAVE_SETLOCALE
|
#ifndef HAVE_SETLOCALE
|
||||||
# define setlocale(Category, Locale)
|
# define setlocale(Category, Locale)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
# include <libintl.h>
|
# include <libintl.h>
|
||||||
# define _(Text) gettext (Text)
|
# define _(Text) gettext (Text)
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user