blob: 95d6cf7fc63b5ad1f34bf70d121f4a2b2e330a61 (
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
|
This file is part of MXE. See LICENSE.md for licensing information.
From bc98fcbc262514378bbb9a5a011cdaf7aef5e744 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Date: Wed, 26 Mar 2014 23:45:05 +0100
Subject: [PATCH] workaround for stricmp decl problem on mingw32 (mingw.org)
diff --git a/src/vmime/platforms/windows/windowsCodepages.hpp b/src/vmime/platforms/windows/windowsCodepages.hpp
index e66b230..211db5e 100644
--- a/src/vmime/platforms/windows/windowsCodepages.hpp
+++ b/src/vmime/platforms/windows/windowsCodepages.hpp
@@ -32,6 +32,10 @@
#include <string.h>
+#define stricmp _stricmp
+extern "C" {
+_CRTIMP int __cdecl __MINGW_NOTHROW _stricmp (const char*, const char*);
+}
namespace vmime {
--
2.1.2
|