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 <windows.h>
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 <stdlib.h>
#include <windows.h>
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 <stdio.h>
#include <synchapi.h>
#include "internal.h"
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public