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