summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2014-09-14 00:21:08 +0200
committerFlorian Hahn <flo@fhahn.com>2014-09-14 00:21:08 +0200
commitd0759dd2081d69dee4d82602fb3690c8115aa1b5 (patch)
tree59724367a5a035031692314152d80c317acc5f90
parentd20dd8ee04016b100531567219467b15713af94a (diff)
downloadrust-hoedown-d0759dd2081d69dee4d82602fb3690c8115aa1b5.tar.gz
Include strings.h to silence warnings for strncasecmp
-rw-r--r--src/autolink.c4
-rw-r--r--src/document.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/autolink.c b/src/autolink.c
index 5d18fb5..7a99d50 100644
--- a/src/autolink.c
+++ b/src/autolink.c
@@ -5,7 +5,9 @@
#include <stdio.h>
#include <ctype.h>
-#ifdef _MSC_VER
+#ifndef _MSC_VER
+#include <strings.h>
+#else
#define strncasecmp _strnicmp
#endif
diff --git a/src/document.c b/src/document.c
index a856205..e32a13c 100644
--- a/src/document.c
+++ b/src/document.c
@@ -7,7 +7,9 @@
#include "stack.h"
-#ifdef _MSC_VER
+#ifndef _MSC_VER
+#include <strings.h>
+#else
#define strncasecmp _strnicmp
#endif