update name of several Ada fixed-point type handling functions
[binutils-gdb.git] / gdbsupport / host-defs.h
blob925a49737e5bb9dbcb10b3b0adee21be376e92c0
1 /* Basic host-specific definitions for GDB.
2 Copyright (C) 1986-2020 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 #ifndef COMMON_HOST_DEFS_H
20 #define COMMON_HOST_DEFS_H
22 #include <limits.h>
24 /* Static host-system-dependent parameters for GDB. */
26 /* * Number of bits in a char or unsigned char for the target machine.
27 Just like CHAR_BIT in <limits.h> but describes the target machine. */
28 #if !defined (TARGET_CHAR_BIT)
29 #define TARGET_CHAR_BIT 8
30 #endif
32 /* * If we picked up a copy of CHAR_BIT from a configuration file
33 (which may get it by including <limits.h>) then use it to set
34 the number of bits in a host char. If not, use the same size
35 as the target. */
37 #if defined (CHAR_BIT)
38 #define HOST_CHAR_BIT CHAR_BIT
39 #else
40 #define HOST_CHAR_BIT TARGET_CHAR_BIT
41 #endif
43 #ifdef __MSDOS__
44 # define CANT_FORK
45 # define GLOBAL_CURDIR
46 # define DIRNAME_SEPARATOR ';'
47 #endif
49 #if !defined (__CYGWIN__) && defined (_WIN32)
50 # define DIRNAME_SEPARATOR ';'
51 #endif
53 #ifndef DIRNAME_SEPARATOR
54 #define DIRNAME_SEPARATOR ':'
55 #endif
57 #ifndef SLASH_STRING
58 #define SLASH_STRING "/"
59 #endif
61 #endif /* COMMON_HOST_DEFS_H */