xmlwrapp
Lightweight C++ XML parsing library
xmlwrapp
export.h
1
/*
2
* Copyright (C) 2010 Vaclav Slavik <vslavik@gmail.com>
3
* All Rights Reserved
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
* 2. Redistributions in binary form must reproduce the above copyright
12
* notice, this list of conditions and the following disclaimer in
13
* the documentation and/or other materials provided with the
14
* distribution.
15
* 3. Neither the name of the Author nor the names of its contributors
16
* may be used to endorse or promote products derived from this software
17
* without specific prior written permission.
18
*
19
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS''
20
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR
23
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
26
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
29
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30
* SUCH DAMAGE.
31
*/
32
33
#ifndef _xmlwrapp_export_h_
34
#define _xmlwrapp_export_h_
35
36
#if defined(_WIN32)
37
// Note that DLL_EXPORT is predefined by libtool when building the DLLs,
38
// but when using them, XMLWRAPP_USE_DLL or XSLTWRAPP_USE_DLL must be
39
// predefined by the application.
40
#if defined(DLL_EXPORT)
41
#if defined(XMLWRAPP_BUILD)
42
#define XMLWRAPP_API __declspec(dllexport)
43
#endif
44
45
#if defined(XSLTWRAPP_BUILD)
46
#define XSLTWRAPP_API __declspec(dllexport)
47
#endif
48
#endif
49
50
#if defined(XMLWRAPP_USE_DLL)
51
#define XMLWRAPP_API __declspec(dllimport)
52
#endif
53
54
#if defined(XSLTWRAPP_USE_DLL)
55
#define XSLTWRAPP_API __declspec(dllimport)
56
#endif
57
#elif defined(HAVE_VISIBILITY)
58
#define XMLWRAPP_API __attribute__ ((visibility("default")))
59
#define XSLTWRAPP_API __attribute__ ((visibility("default")))
60
#endif
61
62
#ifndef XMLWRAPP_API
63
#define XMLWRAPP_API
64
#endif
65
66
#ifndef XSLTWRAPP_API
67
#define XSLTWRAPP_API
68
#endif
69
70
#if defined(__clang__)
71
#if defined(__has_extension) && __has_extension(attribute_deprecated_with_message)
72
#define XMLWRAPP_DEPRECATED(msg) __attribute__((deprecated(msg)))
73
#else
74
#define XMLWRAPP_DEPRECATED(msg) __attribute__((deprecated))
75
#endif
76
#elif defined(__GNUC__)
77
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
78
#define XMLWRAPP_DEPRECATED(msg) __attribute__((deprecated(msg)))
79
#else
80
#define XMLWRAPP_DEPRECATED(msg) __attribute__((deprecated))
81
#endif
82
#elif defined(_MSC_VER)
83
#if _MSC_VER >= 1400
84
#define XMLWRAPP_DEPRECATED(msg) __declspec(deprecated("deprecated: " msg))
85
#elif _MSC_VER >= 1300
86
#define XMLWRAPP_DEPRECATED(msg) __declspec(deprecated)
87
#else
88
#define XMLWRAPP_DEPRECATED(msg)
89
#endif
90
#else
91
#define XMLWRAPP_DEPRECATED(msg)
92
#endif
93
94
#endif // _xmlwrapp_export_h_
Generated on Sun Nov 1 2020 22:55:53 for xmlwrapp by
1.8.18