Skip to content

Commit 51d636f

Browse files
committed
Define strnicmp() as strncasecmp() for GNU GCC, including MingW, regardless of the platform; this fixes issue #16.
1 parent 96c8455 commit 51d636f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/minIni.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#pragma warning(disable: 4996) /* for Microsoft Visual C/C++ */
7272
#endif
7373
#if !defined strnicmp && !defined PORTABLE_STRNICMP
74-
#if defined __LINUX__ || defined __FreeBSD__ || defined __OpenBSD__ || defined __APPLE__
74+
#if defined __LINUX__ || defined __FreeBSD__ || defined __OpenBSD__ || defined __APPLE__ || defined __GNUC__
7575
#define strnicmp strncasecmp
7676
#endif
7777
#endif

0 commit comments

Comments
 (0)