1 /* sysdep.h -- handle host dependencies for binutils
2 Copyright (C) 1991-2022 Free Software Foundation, Inc.
4 This file is part of GNU Binutils.
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, write to the Free Software
18 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
25 #ifdef HAVE_SYS_TYPES_H
26 #include <sys/types.h>
28 #ifdef HAVE_SYS_STAT_H
41 #ifdef HAVE_SYS_FILE_H
49 #ifdef USE_BINARY_FOPEN
50 #include "fopen-bin.h"
52 #include "fopen-same.h"
55 #include "binary-io.h"
58 extern char *stpcpy (char *, const char *);
61 #if !HAVE_DECL_ENVIRON
62 extern char **environ
;
84 /* The Solaris version of locale.h always includes libintl.h. If we have
85 been configured with --disable-nls then ENABLE_NLS will not be defined
86 and the dummy definitions of bindtextdomain (et al) below will conflict
87 with the defintions in libintl.h. So we define these values to prevent
88 the bogus inclusion of libintl.h. */
90 # define _LIBGETTEXT_H
96 # define _(String) gettext (String)
98 # define N_(String) gettext_noop (String)
100 # define N_(String) (String)
103 # define gettext(Msgid) (Msgid)
104 # define dgettext(Domainname, Msgid) (Msgid)
105 # define dcgettext(Domainname, Msgid, Category) (Msgid)
106 # define ngettext(Msgid1, Msgid2, n) \
107 (n == 1 ? Msgid1 : Msgid2)
108 # define dngettext(Domainname, Msgid1, Msgid2, n) \
109 (n == 1 ? Msgid1 : Msgid2)
110 # define dcngettext(Domainname, Msgid1, Msgid2, n, Category) \
111 (n == 1 ? Msgid1 : Msgid2)
112 # define textdomain(Domainname) do {} while (0)
113 # define bindtextdomain(Domainname, Dirname) do {} while (0)
114 # define _(String) (String)
115 # define N_(String) (String)
118 /* Used by ar.c and objcopy.c. */
123 #if SIZEOF_LONG_LONG > SIZEOF_LONG
124 /* We can't use any bfd types here since readelf may define BFD64 and
126 #define HOST_WIDEST_INT long long
128 #define HOST_WIDEST_INT long
131 #define POISON_BFD_BOOLEAN 1
133 #endif /* _BIN_SYSDEP_H */