From f3729e322d828ba45269efb513e76a6dd1d82d31 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sat, 1 Jan 2022 18:09:57 -0800
Subject: [PATCH] Resolve MSVC warning C4273: 'strnlen': inconsistent dll
 linkage

---
 src/xpdev/strwrap.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xpdev/strwrap.h b/src/xpdev/strwrap.h
index e52986f122..482fa1f53b 100644
--- a/src/xpdev/strwrap.h
+++ b/src/xpdev/strwrap.h
@@ -24,7 +24,9 @@ extern "C" {
 #endif
 
 char *strndup(const char *str, size_t maxlen);
+#if defined(_WIN32) && !defined(_MSC_VER)
 size_t strnlen(const char *s, size_t maxlen);
+#endif
 
 #if defined(__cplusplus)
 }
-- 
GitLab