1 /* $Id$
2  *
3  * Lasso - A free implementation of the Liberty Alliance specifications.
4  *
5  * Copyright (C) 2004-2007 Entr'ouvert
6  * http://lasso.entrouvert.org
7  *
8  * Authors: See AUTHORS file in top-level directory.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef __LASSO_EXPORT_H__
25 #define __LASSO_EXPORT_H__
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30 
31 #include "ctypes.h"
32 
33 /* Now, the export orgy begins. The following we must do for the
34  * Windows platform with MSVC compiler. */
35 
36 #if !defined LASSO_EXPORT
37 #  if (defined _MSC_VER || defined MINGW32)
38 	/* if we compile libxmlsec itself: */
39 #    if defined(IN_LASSO)
40 #      if !defined(LASSO_STATIC)
41 #        define LASSO_EXPORT __declspec(dllexport)
42 #      else
43 #        define LASSO_EXPORT extern
44 #      endif
45 	/* if a client program includes this file: */
46 #    else
47 #      if !defined(LASSO_STATIC)
48 #        define LASSO_EXPORT __declspec(dllimport)
49 #      else
50 #        define LASSO_EXPORT
51 #      endif
52 #    endif
53 	/* This holds on all other platforms/compilers, which are easier to
54 	   handle in regard to this. */
55 #  else
56 #    define LASSO_EXPORT
57 #  endif
58 #endif
59 
60 #if !defined LASSO_EXPORT_VAR
61 #  if (defined _MSC_VER || defined MINGW32)
62 	/* if we compile libxmlsec itself: */
63 #    if defined(IN_LASSO)
64 #      if !defined(LASSO_STATIC)
65 #        define LASSO_EXPORT_VAR __declspec(dllexport) extern
66 #      else
67 #        define LASSO_EXPORT_VAR extern
68 #      endif
69 	/* if we compile libxmlsec-crypto itself: */
70 #    elif defined(IN_LASSO_CRYPTO)
71 #        define LASSO_EXPORT_VAR extern
72 	/* if a client program includes this file: */
73 #    else
74 #      if !defined(LASSO_STATIC)
75 #        define LASSO_EXPORT_VAR __declspec(dllimport) extern
76 #      else
77 #        define LASSO_EXPORT_VAR extern
78 #      endif
79 #    endif
80 	/* This holds on all other platforms/compilers, which are easier to
81 	   handle in regard to this. */
82 #  else
83 #    define LASSO_EXPORT_VAR extern
84 #  endif
85 #endif
86 
87 #ifdef __cplusplus
88 }
89 #endif /* __cplusplus */
90 
91 #endif /* __LASSO_EXPORT_H__ */
92