Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / depdemo / l3 / l3.h
1 /* l3.h -- interface to a trivial library
2
3    Copyright (C) 1998-1999 Thomas Tanner
4    Copyright (C) 2006, 2010 Free Software Foundation, Inc.
5    Written by Thomas Tanner, 1998
6
7    This file is part of GNU Libtool.
8
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.
13
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.
18
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.
24 */
25
26 /* Only include this header file once. */
27 #ifndef _L3_H_
28 #define _L3_H_ 1
29
30 #include "sysdep.h"
31
32 #if (defined _WIN32 || defined _WIN32_WCE) && !defined __GNUC__
33 # ifdef BUILDING_LIBL3
34 #  ifdef DLL_EXPORT
35 #   define LIBL3_SCOPE extern __declspec (dllexport)
36 #  endif
37 # else
38 #  define LIBL3_SCOPE extern __declspec (dllimport)
39 # endif
40 #endif
41 #ifndef LIBL3_SCOPE
42 # define LIBL3_SCOPE extern
43 #endif
44
45 __BEGIN_DECLS
46 LIBL3_SCOPE int var_l3;
47 int     func_l3 __P((int));
48 __END_DECLS
49
50 #endif /* !_L3_H_ */