Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / mdemo / foo.h
1 /* foo.h -- interface to the libfoo* libraries
2
3    Copyright (C) 1998-1999, 2006 Free Software Foundation, Inc.
4    Written by Thomas Tanner, 1998
5
6    This file is part of GNU Libtool.
7
8 GNU Libtool is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of
11 the License, or (at your option) any later version.
12
13 GNU Libtool 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.
17
18 You should have received a copy of the GNU General Public License
19 along with GNU Libtool; see the file COPYING.  If not, a copy
20 can be downloaded from  http://www.gnu.org/licenses/gpl.html,
21 or obtained by writing to the Free Software Foundation, Inc.,
22 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 */
24
25 /* Only include this header file once. */
26 #ifndef _FOO_H_
27 #define _FOO_H_ 1
28
29 /* __BEGIN_DECLS should be used at the beginning of your declarations,
30    so that C++ compilers don't mangle their names.  Use __END_DECLS at
31    the end of C declarations. */
32 #undef __BEGIN_DECLS
33 #undef __END_DECLS
34 #ifdef __cplusplus
35 # define __BEGIN_DECLS extern "C" {
36 # define __END_DECLS }
37 #else
38 # define __BEGIN_DECLS /* empty */
39 # define __END_DECLS /* empty */
40 #endif
41
42 /* Silly constants that the functions return. */
43 #define HELLO_RET 0xe110
44 #define FOO_RET 0xf00
45
46 extern void sub();
47
48 #endif /* !_FOO_H_ */