Open SpaceIm opened 8 months ago
Hide private symbols irrespective of compiler when yaml-cpp shared is built with CMake. This PR is similar to https://github.com/jbeder/yaml-cpp/pull/984, but it does not remove dll.h (which was the reason why it has been reverted in https://github.com/jbeder/yaml-cpp/pull/1038). So it doesn't break users not relying on CMake to build yaml-cpp.
dll.h
Also simplify dll.h, which had lot of dead code, and weird logic for entering in declspec branch (actually it's windows specific, so _WIN32 is fine).
_WIN32
Has conflicts now.
Hide private symbols irrespective of compiler when yaml-cpp shared is built with CMake. This PR is similar to https://github.com/jbeder/yaml-cpp/pull/984, but it does not remove
dll.h
(which was the reason why it has been reverted in https://github.com/jbeder/yaml-cpp/pull/1038). So it doesn't break users not relying on CMake to build yaml-cpp.Also simplify
dll.h
, which had lot of dead code, and weird logic for entering in declspec branch (actually it's windows specific, so_WIN32
is fine).