BRE12
dll.h
1 #ifndef DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
3 
4 #if defined(_MSC_VER) || \
5  (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
6  (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
7 #pragma once
8 #endif
9 
10 // The following ifdef block is the standard way of creating macros which make
11 // exporting from a DLL simpler. All files within this DLL are compiled with the
12 // yaml_cpp_EXPORTS symbol defined on the command line. This symbol should not
13 // be defined on any project that uses this DLL. This way any other project
14 // whose source files include this file see YAML_CPP_API functions as being
15 // imported from a DLL, whereas this DLL sees symbols defined with this macro as
16 // being exported.
17 #undef YAML_CPP_API
18 
19 #ifdef YAML_CPP_DLL // Using or Building YAML-CPP DLL (definition defined
20  // manually)
21 #ifdef yaml_cpp_EXPORTS // Building YAML-CPP DLL (definition created by CMake
22  // or defined manually)
23 // #pragma message( "Defining YAML_CPP_API for DLL export" )
24 #define YAML_CPP_API __declspec(dllexport)
25 #else // yaml_cpp_EXPORTS
26 // #pragma message( "Defining YAML_CPP_API for DLL import" )
27 #define YAML_CPP_API __declspec(dllimport)
28 #endif // yaml_cpp_EXPORTS
29 #else // YAML_CPP_DLL
30 #define YAML_CPP_API
31 #endif // YAML_CPP_DLL
32 
33 #endif // DLL_H_62B23520_7C8E_11DE_8A39_0800200C9A66