Corrected a windows-specific API warning

This commit is contained in:
Jack Andersen 2015-08-31 11:49:33 -10:00
parent bca146dbfc
commit 4a4962424d
1 changed files with 4 additions and 0 deletions

View File

@ -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
}
/*