X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Fsysdep.h;h=bb7d4db4e82b4792e4dcc4970085ac6486d8d45d;hb=7ab967941150b2f79fc089893bf51e6bb53d245b;hp=33129252ea256ed02d1ec454cd86a6deabcbf0ce;hpb=4b95cf5c0c75d6efc1b2f96af72317aecca079f1;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/sysdep.h b/binutils/sysdep.h index 33129252ea..bb7d4db4e8 100644 --- a/binutils/sysdep.h +++ b/binutils/sysdep.h @@ -1,5 +1,5 @@ /* sysdep.h -- handle host dependencies for binutils - Copyright (C) 1991-2014 Free Software Foundation, Inc. + Copyright (C) 1991-2020 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -112,6 +112,10 @@ extern int snprintf(char *, size_t, const char *, ...); extern int vsnprintf(char *, size_t, const char *, va_list); #endif +#if !HAVE_DECL_STRNLEN +size_t strnlen (const char *, size_t); +#endif + #ifndef O_RDONLY #define O_RDONLY 0 #endif @@ -155,8 +159,14 @@ extern int vsnprintf(char *, size_t, const char *, va_list); # define gettext(Msgid) (Msgid) # define dgettext(Domainname, Msgid) (Msgid) # define dcgettext(Domainname, Msgid, Category) (Msgid) -# define textdomain(Domainname) while (0) /* nothing */ -# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */ +# define ngettext(Msgid1, Msgid2, n) \ + (n == 1 ? Msgid1 : Msgid2) +# define dngettext(Domainname, Msgid1, Msgid2, n) \ + (n == 1 ? Msgid1 : Msgid2) +# define dcngettext(Domainname, Msgid1, Msgid2, n, Category) \ + (n == 1 ? Msgid1 : Msgid2) +# define textdomain(Domainname) do {} while (0) +# define bindtextdomain(Domainname, Dirname) do {} while (0) # define _(String) (String) # define N_(String) (String) #endif @@ -183,4 +193,12 @@ extern int vsnprintf(char *, size_t, const char *, va_list); # endif #endif +#if defined HAVE_LONG_LONG && SIZEOF_LONG_LONG > SIZEOF_LONG +/* We can't use any bfd types here since readelf may define BFD64 and + objdump may not. */ +#define HOST_WIDEST_INT long long +#else +#define HOST_WIDEST_INT long +#endif + #endif /* _BIN_SYSDEP_H */