1
/* $Id: export.h,v 1.3 2004/08/03 15:12:44 rchantereau Exp $
3
* Lasso - A free implementation of the Liberty Alliance specifications.
5
* Copyright (C) 2004 Entr'ouvert
6
* http://lasso.entrouvert.org
8
* Authors: Nicolas Clapies <nclapies@entrouvert.com>
9
* Valery Febvre <vfebvre@easter-eggs.com>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
#ifndef __LASSO_EXPORT_H__
27
#define __LASSO_EXPORT_H__
31
#endif /* __cplusplus */
33
/* Now, the export orgy begins. The following we must do for the
34
Windows platform with MSVC compiler. */
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)
43
# define LASSO_EXPORT extern
45
/* if a client program includes this file: */
47
# if !defined(LASSO_STATIC)
48
# define LASSO_EXPORT __declspec(dllimport)
53
/* This holds on all other platforms/compilers, which are easier to
54
handle in regard to this. */
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
67
# define LASSO_EXPORT_VAR extern
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: */
74
# if !defined(LASSO_STATIC)
75
# define LASSO_EXPORT_VAR __declspec(dllimport) extern
77
# define LASSO_EXPORT_VAR extern
80
/* This holds on all other platforms/compilers, which are easier to
81
handle in regard to this. */
83
# define LASSO_EXPORT_VAR extern
89
#endif /* __cplusplus */
91
#endif /* __LASSO_EXPORT_H__ */