diff --git a/extern/yaml/src/api.c b/extern/yaml/src/api.c index 0c4732e..54e6679 100644 --- a/extern/yaml/src/api.c +++ b/extern/yaml/src/api.c @@ -63,7 +63,11 @@ yaml_strdup(const yaml_char_t *str) if (!str) return NULL; +#if _WIN32 + return (yaml_char_t *)_strdup((char *)str); +#else return (yaml_char_t *)strdup((char *)str); +#endif } /*