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 *);
67 #if !HAVE_DECL_ENVIRON
68 extern char **environ
;
90 /* The Solaris version of locale.h always includes libintl.h. If we have
91 been configured with --disable-nls then ENABLE_NLS will not be defined
92 and the dummy definitions of bindtextdomain (et al) below will conflict
93 with the defintions in libintl.h. So we define these values to prevent
94 the bogus inclusion of libintl.h. */
96 # define _LIBGETTEXT_H
101 # include <libintl.h>
102 # define _(String) gettext (String)
104 # define N_(String) gettext_noop (String)
106 # define N_(String) (String)
109 # define gettext(Msgid) (Msgid)
110 # define dgettext(Domainname, Msgid) (Msgid)
111 # define dcgettext(Domainname, Msgid, Category) (Msgid)
112 # define ngettext(Msgid1, Msgid2, n) \
113 (n == 1 ? Msgid1 : Msgid2)
114 # define dngettext(Domainname, Msgid1, Msgid2, n) \
115 (n == 1 ? Msgid1 : Msgid2)
116 # define dcngettext(Domainname, Msgid1, Msgid2, n, Category) \
117 (n == 1 ? Msgid1 : Msgid2)
118 # define textdomain(Domainname) do {} while (0)
119 # define bindtextdomain(Domainname, Dirname) do {} while (0)
120 # define _(String) (String)
121 # define N_(String) (String)
124 /* Used by ar.c and objcopy.c. */
129 #if SIZEOF_LONG_LONG > SIZEOF_LONG
130 /* We can't use any bfd types here since readelf may define BFD64 and
132 #define HOST_WIDEST_INT long long
134 #define HOST_WIDEST_INT long
137 #define POISON_BFD_BOOLEAN 1
139 #endif /* _BIN_SYSDEP_H */