01-dll.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- contrib/libs/yaml-cpp/include/yaml-cpp/dll.h (index)
  2. +++ contrib/libs/yaml-cpp/include/yaml-cpp/dll.h (working tree)
  3. @@ -7,26 +7,10 @@
  4. // Definition yaml_cpp_EXPORTS using to building YAML-CPP as dll/so library
  5. // (definition created by CMake or defined manually)
  6. -#ifdef YAML_CPP_STATIC_DEFINE
  7. +#if defined(YAML_CPP_STATIC_DEFINE) || defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
  8. # define YAML_CPP_API
  9. # define YAML_CPP_NO_EXPORT
  10. #else
  11. -# if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
  12. -# ifndef YAML_CPP_API
  13. -# ifdef yaml_cpp_EXPORTS
  14. - /* We are building this library */
  15. -# pragma message( "Defining YAML_CPP_API for DLL export" )
  16. -# define YAML_CPP_API __declspec(dllexport)
  17. -# else
  18. - /* We are using this library */
  19. -# pragma message( "Defining YAML_CPP_API for DLL import" )
  20. -# define YAML_CPP_API __declspec(dllimport)
  21. -# endif
  22. -# endif
  23. -# ifndef YAML_CPP_NO_EXPORT
  24. -# define YAML_CPP_NO_EXPORT
  25. -# endif
  26. -# else /* No _MSC_VER */
  27. # ifndef YAML_CPP_API
  28. # ifdef yaml_cpp_EXPORTS
  29. /* We are building this library */
  30. @@ -39,7 +23,6 @@
  31. # ifndef YAML_CPP_NO_EXPORT
  32. # define YAML_CPP_NO_EXPORT __attribute__((visibility("hidden")))
  33. # endif
  34. -# endif /* _MSC_VER */
  35. #endif /* YAML_CPP_STATIC_DEFINE */
  36. #ifndef YAML_CPP_DEPRECATED