Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit 5320da9

Browse files
committed
win32: Win32 has no <strings.h> and needs help getting strcasecmp()
1 parent b8e361e commit 5320da9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

termkey.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66
#ifndef _WIN32
77
# include <poll.h>
88
# include <unistd.h>
9+
# include <strings.h>
910
#endif
1011
#include <string.h>
11-
#include <strings.h>
1212

1313
#include <stdio.h>
1414

15-
#define strcaseeq(a,b) (strcasecmp(a,b) == 0)
15+
#ifdef _MSC_VER
16+
# define strcaseeq(a,b) (_stricmp(a,b) == 0)
17+
#else
18+
# define strcaseeq(a,b) (strcasecmp(a,b) == 0)
19+
#endif
1620

1721
void termkey_check_version(int major, int minor)
1822
{

0 commit comments

Comments
 (0)