]>
Commit | Line | Data |
---|---|---|
7117c2d2 | 1 | /* bashtypes.h -- Bash system types. */ |
726f6388 | 2 | |
167a9248 | 3 | /* Copyright (C) 1993-2009,2024 Free Software Foundation, Inc. |
726f6388 JA |
4 | |
5 | This file is part of GNU Bash, the Bourne Again SHell. | |
6 | ||
2e4498b3 CR |
7 | Bash is free software: you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation, either version 3 of the License, or | |
10 | (at your option) any later version. | |
726f6388 | 11 | |
2e4498b3 CR |
12 | Bash is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
726f6388 | 16 | |
2e4498b3 CR |
17 | You should have received a copy of the GNU General Public License |
18 | along with Bash. If not, see <http://www.gnu.org/licenses/>. | |
19 | */ | |
726f6388 | 20 | |
ccc6cda3 JA |
21 | #if !defined (_BASHTYPES_H_) |
22 | # define _BASHTYPES_H_ | |
726f6388 JA |
23 | |
24 | #if defined (CRAY) | |
25 | # define word __word | |
26 | #endif | |
27 | ||
28 | #include <sys/types.h> | |
29 | ||
30 | #if defined (CRAY) | |
31 | # undef word | |
32 | #endif | |
33 | ||
7117c2d2 JA |
34 | #if defined (HAVE_INTTYPES_H) |
35 | # include <inttypes.h> | |
36 | #endif | |
37 | ||
167a9248 CR |
38 | /* Fix PRIdMAX on systems where it's broken. */ |
39 | #ifdef PRI_MACROS_BROKEN | |
40 | # undef PRIdMAX | |
41 | #endif | |
42 | #ifndef PRIdMAX | |
43 | # if HAVE_LONG_LONG | |
44 | # define PRIdMAX "lld" | |
45 | # else | |
46 | # define PRIdMAX "ld" | |
47 | # endif | |
48 | #endif | |
49 | ||
d0ca3503 CR |
50 | #if HAVE_STDINT_H |
51 | # include <stdint.h> | |
52 | #endif | |
53 | ||
ccc6cda3 | 54 | #endif /* _BASHTYPES_H_ */ |