summaryrefslogtreecommitdiffstats
path: root/src/libbluray-1-fix-strncasecmp.patch
blob: befe4356fe3cb4f1253c10bb49be349aca1f9e9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
This file is part of MXE.
See index.html for further information.

diff -Naur a/src/libbluray/bdnav/meta_parse.c b/src/libbluray/bdnav/meta_parse.c
--- a/src/libbluray/bdnav/meta_parse.c	2013-04-26 13:42:38.000000000 -0700
+++ b/src/libbluray/bdnav/meta_parse.c	2013-11-09 15:41:29.000000000 -0800
@@ -29,6 +29,13 @@
 #include "meta_parse.h"
 #include "libbluray/register.h"
 
+#if (defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR))
+#define strncasecmp _strnicmp
+#ifdef __STRICT_ANSI__
+#undef __STRICT_ANSI__
+#endif
+#endif
+
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>