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