From c3458c9e1f536c6dac0327a88cc295e759cef21a Mon Sep 17 00:00:00 2001 From: Ben Hoyt Date: Thu, 16 Apr 2015 21:29:39 -0400 Subject: [PATCH] Prevent silly strncpy security warning in MSVC. https://github.com/benhoyt/inih/issues/34 --- ini.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ini.c b/ini.c index 9d8e313..d29fde4 100644 --- a/ini.c +++ b/ini.c @@ -7,6 +7,10 @@ home page for more info: */ +#ifdef _MSC_VER +#define _CRT_SECURE_NO_WARNINGS +#endif + #include #include #include