From 4a4962424dc8c87c68dc9696c4c13a7e8d09d9a7 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 31 Aug 2015 11:49:33 -1000 Subject: [PATCH] Corrected a windows-specific API warning --- extern/yaml/src/api.c | 4 ++++ 1 file changed, 4 insertions(+) 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 } /*