]> git.saurik.com Git - bison.git/blame - src/system.h
[__sun && __i386]: Include alloca.h.
[bison.git] / src / system.h
CommitLineData
5fcfb6e7
RS
1#ifdef MSDOS
2#include <io.h>
3#endif
4
5#if defined(HAVE_STDLIB_H) || defined(MSDOS)
6#include <stdlib.h>
7#endif
8
9#if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
10#define HAVE_STRING_H 1
11#endif
12
13#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
14#include <string.h>
15/* An ANSI string.h and pre-ANSI memory.h might conflict. */
16#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
17#include <memory.h>
18#endif /* not STDC_HEADERS and HAVE_MEMORY_H */
19#ifndef bcopy
20#define bcopy(src, dst, num) memcpy((dst), (src), (num))
21#endif
22#else /* not STDC_HEADERS and not HAVE_STRING_H */
23#include <strings.h>
24/* memory.h and strings.h conflict on some systems. */
25#endif /* not STDC_HEADERS and not HAVE_STRING_H */
f2d78a99
RS
26
27#if HAVE_LOCALE_H
28# include <locale.h>
29#endif
30#if !HAVE_SETLOCALE
31# define setlocale(Category, Locale)
32#endif
33
34#if ENABLE_NLS
35# include <libintl.h>
36# define _(Text) gettext (Text)
37#else
38# define bindtextdomain(Domain, Directory)
39# define textdomain(Domain)
40# define _(Text) Text
41#endif
42#define N_(Text) Text
43
44/* In the meantime, waiting for Automake. */
45#define PACKAGE "bison"
46#define LOCALEDIR "/usr/local/share/locale"