Open Chinese Convert: Opencc_Export.h Source File

Open Chinese Convert 1.0.4 A project for conversion between Traditional and Simplified Chinese

- Main Page
- Modules
- Classes
- Examples

Opencc_Export.h
1
2 #ifndef OPENCC_EXPORT_H
3 #define OPENCC_EXPORT_H
4
5 #ifdef Opencc_BUILT_AS_STATIC
6 # define OPENCC_EXPORT
7 # define OPENCC_NO_EXPORT
8 #else
9 # ifndef OPENCC_EXPORT
10 # ifdef libopencc_EXPORTS
11 /* We are building this library */
12 # define OPENCC_EXPORT __attribute__((visibility("default")))
13 # else
14 /* We are using this library */
15 # define OPENCC_EXPORT __attribute__((visibility("default")))
16 # endif
17 # endif
18
19 # ifndef OPENCC_NO_EXPORT
20 # define OPENCC_NO_EXPORT __attribute__((visibility("hidden")))
21 # endif
22 #endif
23
24 #ifndef OPENCC_DEPRECATED
25 # define OPENCC_DEPRECATED __attribute__ ((__deprecated__))
26 #endif
27
28 #ifndef OPENCC_DEPRECATED_EXPORT
29 # define OPENCC_DEPRECATED_EXPORT OPENCC_EXPORT OPENCC_DEPRECATED
30 #endif
31
32 #ifndef OPENCC_DEPRECATED_NO_EXPORT
33 # define OPENCC_DEPRECATED_NO_EXPORT OPENCC_NO_EXPORT OPENCC_DEPRECATED
34 #endif
35
36 #define DEFINE_NO_DEPRECATED 0
37 #if DEFINE_NO_DEPRECATED
38 # define OPENCC_NO_DEPRECATED
39 #endif
40
41 #endif