summaryrefslogtreecommitdiffstats
path: root/src/libbluray-1.patch
blob: ce6ceb7591767cf576b87e14ae5e59c4dfe29594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
This file is part of MXE.
See index.html for further information.

From b9d39febfd23198c1f9758ffe400cb35a97c1223 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Sat, 28 Mar 2015 10:57:00 +0100
Subject: [PATCH] fix strncasecmp


diff --git a/src/libbluray/bdnav/meta_parse.c b/src/libbluray/bdnav/meta_parse.c
index a74ed6e..73ea57b 100644
--- a/src/libbluray/bdnav/meta_parse.c
+++ b/src/libbluray/bdnav/meta_parse.c
@@ -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>
-- 
2.1.0