aboutsummaryrefslogtreecommitdiff
path: root/src/core/strs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/strs.c')
-rw-r--r--src/core/strs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/strs.c b/src/core/strs.c
index 08338499..6cee605b 100644
--- a/src/core/strs.c
+++ b/src/core/strs.c
@@ -21,7 +21,11 @@ char *
nni_strdup(const char *src)
{
#ifdef NNG_HAVE_STRDUP
+#ifdef _WIN32
+ return (_strdup(src));
+#else
return (strdup(src));
+#endif
#else
char * dst;
size_t len = strlen(src);