1 /* sysdep.h -- handle host dependencies for the BFD library
2 Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001
3 Free Software Foundation, Inc.
4 Written by Cygnus Support.
6 This file is part of BFD, the Binary File Descriptor library.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
32 #include <sys/types.h>
36 #if !(defined(errno) || defined(_MSC_VER) && defined(_INC_ERRNO))
40 #ifdef STRING_WITH_STRINGS
50 extern char *strchr ();
51 extern char *strrchr ();
60 #ifdef TIME_WITH_SYS_TIME
64 #ifdef HAVE_SYS_TIME_H
75 #ifdef USE_BINARY_FOPEN
76 #include "fopen-bin.h"
78 #include "fopen-same.h"
84 #ifdef HAVE_SYS_FILE_H
99 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
109 #include "filenames.h"
112 extern int ffs (int);
119 #if !HAVE_DECL_GETENV
120 extern char *getenv ();
123 #if !HAVE_DECL_MALLOC
124 extern PTR
malloc ();
127 #if !HAVE_DECL_REALLOC
128 extern PTR
realloc ();
131 #if !HAVE_DECL_STPCPY
132 extern char *stpcpy (char *__dest
, const char *__src
);
135 #if !HAVE_DECL_STRSTR
136 extern char *strstr ();
140 #if !HAVE_DECL_FTELLO
141 extern off_t
ftello (FILE *stream
);
146 #if !HAVE_DECL_FTELLO64
147 extern off64_t
ftello64 (FILE *stream
);
152 #if !HAVE_DECL_FSEEKO
153 extern int fseeko (FILE *stream
, off_t offset
, int whence
);
158 #if !HAVE_DECL_FSEEKO64
159 extern int fseeko64 (FILE *stream
, off64_t offset
, int whence
);
163 /* Define offsetof for those systems which lack it */
166 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
171 /* Note the use of dgetext() and PACKAGE here, rather than gettext().
173 This is because the code in this directory is used to build a library which
174 will be linked with code in other directories to form programs. We want to
175 maintain a seperate translation file for this directory however, rather
176 than being forced to merge it with that of any program linked to libbfd.
177 This is a library, so it cannot depend on the catalog currently loaded.
179 In order to do this, we have to make sure that when we extract messages we
180 use the OPCODES domain rather than the domain of the program that included
181 the bfd library, (eg OBJDUMP). Hence we use dgettext (PACKAGE, String)
182 and define PACKAGE to be 'bfd'. (See the code in configure). */
183 #define _(String) dgettext (PACKAGE, String)
185 #define N_(String) gettext_noop (String)
187 #define N_(String) (String)
190 # define gettext(Msgid) (Msgid)
191 # define dgettext(Domainname, Msgid) (Msgid)
192 # define dcgettext(Domainname, Msgid, Category) (Msgid)
193 # define textdomain(Domainname) while (0) /* nothing */
194 # define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
195 # define _(String) (String)
196 # define N_(String) (String)
199 #endif /* ! defined (BFD_SYSDEP_H) */
This page took 0.036917 seconds and 5 git commands to generate.