X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f2d78a995d188a34e59b1ab1af646d0f5efc40f0..e569a4351ce32cf9809c68a711d3aaa19c7aba9f:/src/system.h diff --git a/src/system.h b/src/system.h index 5d332099..56c4ef3a 100644 --- a/src/system.h +++ b/src/system.h @@ -1,11 +1,28 @@ +#ifndef BISON_SYSTEM_H +#define BISON_SYSTEM_H + +#ifdef HAVE_CONFIG_H +# include +#endif + #ifdef MSDOS #include #endif +#ifdef _MSC_VER +#include +#include +#define getpid _getpid +#endif + #if defined(HAVE_STDLIB_H) || defined(MSDOS) #include #endif +#if defined(HAVE_UNISTD_H) +#include +#endif + #if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H) #define HAVE_STRING_H 1 #endif @@ -24,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 @@ -42,5 +63,6 @@ #define N_(Text) Text /* In the meantime, waiting for Automake. */ -#define PACKAGE "bison" #define LOCALEDIR "/usr/local/share/locale" + +#endif /* BISON_SYSTEM_H */