CYaml: correct platform check (#303)

The target macro for Windows `_WIN32`.  We would fail to build with CMake on Windows when building with shared libraries.
This commit is contained in:
Saleem Abdulrasool 2021-03-15 07:55:21 -07:00 committed by GitHub
parent adeee7ef61
commit 3a1b1f8c23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ extern "C" {
#if defined(__MINGW32__)
# define YAML_DECLARE(type) type
#elif defined(WIN32)
#elif defined(_WIN32)
# if defined(YAML_DECLARE_STATIC)
# define YAML_DECLARE(type) type
# elif defined(YAML_DECLARE_EXPORT)