libyaml icon indicating copy to clipboard operation
libyaml copied to clipboard

Fix error building on Clang on windows

Open Rageoholic opened this issue 3 years ago • 1 comments

Clang apparently doesn't implement strdup in the version of libc they ship. Instead they implement _strdup which is identical. This change just makes it so that on windows we just call _strdup in yaml_strdup.

Rageoholic avatar Nov 26 '20 20:11 Rageoholic

This patch does not appear to actually change anything, as the ifdef and else sections are identical. Based on the commit message, I think the intention is to use _strdup instead of strdup in the ifdef section.

jeremyevans avatar Oct 25 '21 18:10 jeremyevans