mxe/src/vmime-1.patch

28 lines
744 B
Diff

This file is part of MXE.
See index.html for further 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