]> git.saurik.com Git - bison.git/blobdiff - src/system.h
Added `bison.simple' to list of files removed by `make distclean'.
[bison.git] / src / system.h
index 5d332099c4b316b60f2f98fe2f049d1d43653dba..56c4ef3a73d906b748696bc50f2a4f2154cb7148 100644 (file)
@@ -1,11 +1,28 @@
+#ifndef BISON_SYSTEM_H
+#define BISON_SYSTEM_H
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #ifdef MSDOS
 #include <io.h>
 #endif
 
+#ifdef _MSC_VER
+#include <stdlib.h>
+#include <process.h>
+#define getpid _getpid
+#endif
+
 #if defined(HAVE_STDLIB_H) || defined(MSDOS)
 #include <stdlib.h>
 #endif
 
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
+
 #if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
 #define HAVE_STRING_H 1
 #endif
 /* 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 <ctype.h>
+#endif
+
+#ifdef HAVE_LOCALE_H
 # include <locale.h>
 #endif
-#if !HAVE_SETLOCALE
+#ifndef HAVE_SETLOCALE
 # define setlocale(Category, Locale)
 #endif
 
-#if ENABLE_NLS
+#ifdef ENABLE_NLS
 # include <libintl.h>
 # 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 */