Skip to content

Commit 27e9e03

Browse files
author
Devin Torres
committed
Merge pull request vmg#123 from fhahn/silence-implicit-delc-warning
Include strings.h to silence warnings for strncasecmp
2 parents d20dd8e + d0759dd commit 27e9e03

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/autolink.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
#include <stdio.h>
66
#include <ctype.h>
77

8-
#ifdef _MSC_VER
8+
#ifndef _MSC_VER
9+
#include <strings.h>
10+
#else
911
#define strncasecmp _strnicmp
1012
#endif
1113

src/document.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
#include "stack.h"
99

10-
#ifdef _MSC_VER
10+
#ifndef _MSC_VER
11+
#include <strings.h>
12+
#else
1113
#define strncasecmp _strnicmp
1214
#endif
1315

0 commit comments

Comments
 (0)