Free Electron
dll.h
1 #ifndef DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
3 
4 // Definition YAML_CPP_STATIC_DEFINE using to building YAML-CPP as static
5 // library (definition created by CMake or defined manually)
6 
7 // Definition yaml_cpp_EXPORTS using to building YAML-CPP as dll/so library
8 // (definition created by CMake or defined manually)
9 
10 #ifdef YAML_CPP_STATIC_DEFINE
11 # define YAML_CPP_API
12 # define YAML_CPP_NO_EXPORT
13 #else
14 # if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
15 # ifndef YAML_CPP_API
16 # ifdef yaml_cpp_EXPORTS
17  /* We are building this library */
18 # pragma message( "Defining YAML_CPP_API for DLL export" )
19 # define YAML_CPP_API __declspec(dllexport)
20 # else
21  /* We are using this library */
22 # pragma message( "Defining YAML_CPP_API for DLL import" )
23 # define YAML_CPP_API __declspec(dllimport)
24 # endif
25 # endif
26 # ifndef YAML_CPP_NO_EXPORT
27 # define YAML_CPP_NO_EXPORT
28 # endif
29 # else /* No _MSC_VER */
30 # ifndef YAML_CPP_API
31 # ifdef yaml_cpp_EXPORTS
32  /* We are building this library */
33 # define YAML_CPP_API __attribute__((visibility("default")))
34 # else
35  /* We are using this library */
36 # define YAML_CPP_API __attribute__((visibility("default")))
37 # endif
38 # endif
39 # ifndef YAML_CPP_NO_EXPORT
40 # define YAML_CPP_NO_EXPORT __attribute__((visibility("hidden")))
41 # endif
42 # endif /* _MSC_VER */
43 #endif /* YAML_CPP_STATIC_DEFINE */
44 
45 #ifndef YAML_CPP_DEPRECATED
46 # ifdef _MSC_VER
47 # define YAML_CPP_DEPRECATED __declspec(deprecated)
48 # else
49 # define YAML_CPP_DEPRECATED __attribute__ ((__deprecated__))
50 # endif
51 #endif
52 
53 #ifndef YAML_CPP_DEPRECATED_EXPORT
54 # define YAML_CPP_DEPRECATED_EXPORT YAML_CPP_API YAML_CPP_DEPRECATED
55 #endif
56 
57 #ifndef YAML_CPP_DEPRECATED_NO_EXPORT
58 # define YAML_CPP_DEPRECATED_NO_EXPORT YAML_CPP_NO_EXPORT YAML_CPP_DEPRECATED
59 #endif
60 
61 #endif /* DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66 */