]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbsupport/host-defs.h
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdbsupport / host-defs.h
CommitLineData
48faced0 1/* Basic host-specific definitions for GDB.
213516ef 2 Copyright (C) 1986-2023 Free Software Foundation, Inc.
fa864999
TT
3
4 This file is part of GDB.
5
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.
10
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.
15
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/>. */
18
1a5c2598
TT
19#ifndef COMMON_HOST_DEFS_H
20#define COMMON_HOST_DEFS_H
fa864999 21
03aef70f
JK
22#include <limits.h>
23
24/* Static host-system-dependent parameters for GDB. */
25
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
31
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. */
36
37#if defined (CHAR_BIT)
38#define HOST_CHAR_BIT CHAR_BIT
39#else
40#define HOST_CHAR_BIT TARGET_CHAR_BIT
41#endif
42
48faced0
DE
43#ifdef __MSDOS__
44# define CANT_FORK
45# define GLOBAL_CURDIR
46# define DIRNAME_SEPARATOR ';'
47#endif
e4ab2fad 48
48faced0
DE
49#if !defined (__CYGWIN__) && defined (_WIN32)
50# define DIRNAME_SEPARATOR ';'
51#endif
e4ab2fad 52
48faced0
DE
53#ifndef DIRNAME_SEPARATOR
54#define DIRNAME_SEPARATOR ':'
55#endif
e4ab2fad 56
48faced0
DE
57#ifndef SLASH_STRING
58#define SLASH_STRING "/"
59#endif
55aa24fb 60
1a5c2598 61#endif /* COMMON_HOST_DEFS_H */