1 /* sysdep.h -- handle host dependencies for the BFD library
2 Copyright 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
3 Written by Cygnus Support.
5 This file is part of BFD, the Binary File Descriptor library.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
33 #include <sys/types.h>
37 #if !(defined(errno) || defined(_MSC_VER) && defined(_INC_ERRNO))
47 extern char *strchr ();
48 extern char *strrchr ();
56 #ifdef TIME_WITH_SYS_TIME
60 #ifdef HAVE_SYS_TIME_H
71 #ifdef USE_BINARY_FOPEN
72 #include "fopen-bin.h"
74 #include "fopen-same.h"
80 #ifdef HAVE_SYS_FILE_H
95 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
105 #include "filenames.h"
107 #ifdef NEED_DECLARATION_STRSTR
108 extern char *strstr ();
111 #ifdef NEED_DECLARATION_MALLOC
112 extern PTR
malloc ();
115 #ifdef NEED_DECLARATION_REALLOC
116 extern PTR
realloc ();
119 #ifdef NEED_DECLARATION_FREE
123 #ifdef NEED_DECLARATION_GETENV
124 extern char *getenv ();
129 /* Note the use of dgetext() and PACKAGE here, rather than gettext().
131 This is because the code in this directory is used to build a library which
132 will be linked with code in other directories to form programs. We want to
133 maintain a seperate translation file for this directory however, rather
134 than being forced to merge it with that of any program linked to libbfd.
135 This is a library, so it cannot depend on the catalog currently loaded.
137 In order to do this, we have to make sure that when we extract messages we
138 use the OPCODES domain rather than the domain of the program that included
139 the bfd library, (eg OBJDUMP). Hence we use dgettext (PACKAGE, String)
140 and define PACKAGE to be 'bfd'. (See the code in configure). */
141 #define _(String) dgettext (PACKAGE, String)
143 #define N_(String) gettext_noop (String)
145 #define N_(String) (String)
148 # define gettext(Msgid) (Msgid)
149 # define dgettext(Domainname, Msgid) (Msgid)
150 # define dcgettext(Domainname, Msgid, Category) (Msgid)
151 # define textdomain(Domainname) while (0) /* nothing */
152 # define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
153 # define _(String) (String)
154 # define N_(String) (String)
157 #endif /* ! defined (BFD_SYSDEP_H) */