Nemiver  0.3
nmv-api-macros.h
Go to the documentation of this file.
1 /*Copyright (c) 2005-2006 Dodji Seketeli
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a copy of this
4  * software and associated documentation files (the "Software"),
5  * to deal in the Software without restriction, including without limitation
6  * the rights to use, copy, modify, merge, publish, distribute,
7  * sublicense, and/or sell copies of the Software, and to permit
8  * persons to whom the Software is furnished to do so,
9  * subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all copies
12  * or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS",
15  * WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16  * INCLUDING BUT NOT LIMITED TO THE
17  * WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE
19  " AND NONINFRINGEMENT.
20  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21  * HOLDERS BE LIABLE FOR ANY CLAIM,
22  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
23  * CONTRACT, TORT OR OTHERWISE,
24  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
25  * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26  *
27  */
28 #include "config.h"
29 #ifndef __NMV_API_MACROS_H__
30 #define __NMV_API_MACROS_H__
31 
32 # ifdef HAS_GCC_VISIBILITY_SUPPORT
33 # ifndef DSO_EXPORTED
34 # define DSO_EXPORTED __attribute__ ((visibility("default")))
35 # endif
36 # ifndef DSO_NOT_EXPORTED
37 # define DSO_NOT_EXPORTED __attribute__ ((visibility("hidden")))
38 # endif
39 # ifndef NEMIVER_EXCEPTION_API
40 # define NEMIVER_EXCEPTION_API DSO_EXPORTED
41 # endif
42 # ifndef NEMIVER_PURE_IFACE
43 # define NEMIVER_PURE_IFACE DSO_EXPORTED
44 # endif
45 # ifndef NEMIVER_API
46 # define NEMIVER_API DSO_EXPORTED
47 # endif //NEMIVER_API DSO_EXPORTED
48 # else
49 # define DSO_EXPORTED
50 # define DSO_NOT_EXPORTED
51 # define NEMIVER_EXCEPTION_API
52 # define NEMIVER_PURE_IFACE
53 # define NEMIVER_API
54 # endif //HAS_GCC_VISIBILITY_SUPPORT
55 #endif
56