[Mingw-w64-public] [PATCH] redeclared without dllimport warnings

2016-08-25 Thread David Wohlferd
The thing that started the _SECIMP work was a whole bunch of "redeclared 
without dllimport attribute: previous dllimport ignored" warnings.  
While the _SECIMP work (coming soon) will fix most of them, there are a 
few others that still give this warning.


This patch fixes the places that DON'T use _SECIMP.

dw

diff --git a/mingw-w64-crt/misc/invalid_parameter_handler.c b/mingw-w64-crt/misc/invalid_parameter_handler.c
index edcdede..972b859 100644
--- a/mingw-w64-crt/misc/invalid_parameter_handler.c
+++ b/mingw-w64-crt/misc/invalid_parameter_handler.c
@@ -1,3 +1,4 @@
+#define _CRTIMP
 #include 
 
 typedef void (__cdecl *_invalid_parameter_handler)(const wchar_t *,const wchar_t *,const wchar_t *,unsigned int,uintptr_t);
diff --git a/mingw-w64-crt/misc/purecall.c b/mingw-w64-crt/misc/purecall.c
index 39be174..8c29e67 100644
--- a/mingw-w64-crt/misc/purecall.c
+++ b/mingw-w64-crt/misc/purecall.c
@@ -4,6 +4,7 @@
  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  */
 
+#define _CRTIMP
 #include 
 #include 
 
diff --git a/mingw-w64-crt/stdio/mingw_lock.c b/mingw-w64-crt/stdio/mingw_lock.c
index e62fe03..fe31780 100644
--- a/mingw-w64-crt/stdio/mingw_lock.c
+++ b/mingw-w64-crt/stdio/mingw_lock.c
@@ -1,3 +1,4 @@
+#define _CRTIMP
 #include 
 #include 
 #include "internal.h"
--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] redeclared without dllimport warnings

2016-08-25 Thread JonY
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 8/25/2016 16:44, David Wohlferd wrote:
> The thing that started the _SECIMP work was a whole bunch of
> "redeclared without dllimport attribute: previous dllimport
> ignored" warnings. While the _SECIMP work (coming soon) will fix
> most of them, there are a few others that still give this warning.
> 
> This patch fixes the places that DON'T use _SECIMP.
> 
> dw
> 

Patch looks good.


-BEGIN PGP SIGNATURE-

iF4EAREIAAYFAle+z2sACgkQk721PNTrx0AxnQEAlD+hySUwN8XxEZJgXE1546hC
0j7ja0TMEkRgFZXW4K4A/jWuMCES/5uzQ3AeIFOxweTbqeomsUXofY+vm+fJmZNs
=Ba8W
-END PGP SIGNATURE-
--
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public