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
#ifdef HAVE_VISIBILITY
37
#define XMLWRAPP_API __attribute__ ((visibility("default")))
38
#define XSLTWRAPP_API __attribute__ ((visibility("default")))
39
#else
40
#define XMLWRAPP_API
41
#define XSLTWRAPP_API
42
#endif
43
44
#if defined(__clang__)
45
#if defined(__has_extension) && __has_extension(attribute_deprecated_with_message)
46
#define XMLWRAPP_DEPRECATED(msg) __attribute__((deprecated(msg)))
47
#else
48
#define XMLWRAPP_DEPRECATED(msg) __attribute__((deprecated))
49
#endif
50
#elif defined(__GNUC__)
51
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
52
#define XMLWRAPP_DEPRECATED(msg) __attribute__((deprecated(msg)))
53
#else
54
#define XMLWRAPP_DEPRECATED(msg) __attribute__((deprecated))
55
#endif
56
#elif defined(_MSC_VER)
57
#if _MSC_VER >= 1400
58
#define XMLWRAPP_DEPRECATED(msg) __declspec(deprecated("deprecated: " msg))
59
#elif _MSC_VER >= 1300
60
#define XMLWRAPP_DEPRECATED(msg) __declspec(deprecated)
61
#else
62
#define XMLWRAPP_DEPRECATED(msg)
63
#endif
64
#else
65
#define XMLWRAPP_DEPRECATED(msg)
66
#endif
67
68
#endif // _xmlwrapp_export_h_
Generated on Sun Apr 8 2018 17:13:50 for xmlwrapp by
1.8.13