Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for Win64 "strdup symbol not found" link problem. #45

Merged
merged 4 commits into from Jul 14, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion libyaml/api.c
Expand Up @@ -5,6 +5,15 @@
* Get the library version.
*/

/*
* added to support _WIN64
*/
#if _WIN64
#define STRDUP _strdup
#else
#define STRDUP strdup
#endif

YAML_DECLARE(const char *)
yaml_get_version_string(void)
{
Expand Down Expand Up @@ -63,7 +72,7 @@ yaml_strdup(const yaml_char_t *str)
if (!str)
return NULL;

return (yaml_char_t *)strdup((char *)str);
return (yaml_char_t *) STRDUP((char *)str);
}

/*
Expand Down