Make DECLSPEC_DLLIMPORT widl-comppatible.


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@6510 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/include/cryptxml.h b/mingw-w64-headers/include/cryptxml.h
index 76614cc..a683986 100644
--- a/mingw-w64-headers/include/cryptxml.h
+++ b/mingw-w64-headers/include/cryptxml.h
@@ -12,7 +12,11 @@
 #endif
 
 #ifndef DECLSPEC_IMPORT
+#ifndef __WIDL__
 #define DECLSPEC_IMPORT __declspec(dllimport)
+#else
+#define DECLSPEC_IMPORT
+#endif
 #endif
 
 #ifndef CRYPTXMLAPI
diff --git a/mingw-w64-headers/include/rpc.h b/mingw-w64-headers/include/rpc.h
index fce07e9..72c1253 100644
--- a/mingw-w64-headers/include/rpc.h
+++ b/mingw-w64-headers/include/rpc.h
@@ -56,7 +56,11 @@
 #define RPC_ENTRY __RPC_API
 
 #ifndef DECLSPEC_IMPORT
+#ifndef __WIDL__
 #define DECLSPEC_IMPORT __declspec(dllimport)
+#else
+#define DECLSPEC_IMPORT
+#endif
 #endif
 
 #ifndef _RPCRT4_
diff --git a/mingw-w64-headers/include/winddi.h b/mingw-w64-headers/include/winddi.h
index 4a23dd2..9b4b197 100644
--- a/mingw-w64-headers/include/winddi.h
+++ b/mingw-w64-headers/include/winddi.h
@@ -35,7 +35,11 @@
 #endif
 
 #ifndef DECLSPEC_IMPORT
-#define DECLSPEC_IMPORT __attribute__((dllimport))
+#ifndef __WIDL__
+#define DECLSPEC_IMPORT __declspec(dllimport)
+#else
+#define DECLSPEC_IMPORT
+#endif
 #endif
 
 #ifndef WIN32KAPI