1 /* sysdep.h -- system dependent declarations
3 Copyright (C) 1998-1999 Thomas Tanner
4 Copyright (C) 2006 Free Software Foundation, Inc.
5 Written by Thomas Tanner 1998
7 This file is part of GNU Libtool.
9 GNU Libtool is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of
12 the License, or (at your option) any later version.
14 GNU Libtool is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GNU Libtool; see the file COPYING. If not, a copy
21 can be downloaded from http://www.gnu.org/licenses/gpl.html,
22 or obtained by writing to the Free Software Foundation, Inc.,
23 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 /* Only include this header file once. */
30 /* __BEGIN_DECLS should be used at the beginning of your declarations,
31 so that C++ compilers don't mangle their names. Use __END_DECLS at
32 the end of C declarations. */
36 # define __BEGIN_DECLS extern "C" {
37 # define __END_DECLS }
39 # define __BEGIN_DECLS /* empty */
40 # define __END_DECLS /* empty */
43 /* __P is a macro used to wrap function prototypes, so that compilers
44 that don't understand ANSI C prototypes still work, and ANSI C
45 compilers can issue warnings about type mismatches. */
47 #if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(WIN32) || defined(__cplusplus)
48 # define __P(protos) protos
50 # define __P(protos) ()
53 #endif /* !_SYSDEP_H_ */