From 7ec5fecf451dabc81b1ce630d6076c1ab504ebc9 Mon Sep 17 00:00:00 2001 From: Magnus Edenhill Date: Tue, 29 Dec 2015 00:53:55 +0100 Subject: [PATCH] Provide own strndup if necessary (#253) --- src/rd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rd.h b/src/rd.h index 5ae40be7cb..ec284eaa45 100644 --- a/src/rd.h +++ b/src/rd.h @@ -108,7 +108,7 @@ static __inline RD_UNUSED char *rd_strdup(const char *s) { } static __inline RD_UNUSED char *rd_strndup(const char *s, size_t len) { -#ifndef _MSC_VER +#if HAVE_STRNDUP char *n = strndup(s, len); assert(n); #else