Alexandre Julliard : include: Use DECLSPEC_HIDDEN instead of DECLSPEC_IMPORT for dll exports.

Alexandre Julliard julliard at winehq.org
Thu May 2 16:45:08 CDT 2019


Module: wine
Branch: master
Commit: 60ac1cec626b63130c50b1f5c61d5fd54d185dda
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=60ac1cec626b63130c50b1f5c61d5fd54d185dda

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May  2 14:52:15 2019 +0200

include: Use DECLSPEC_HIDDEN instead of DECLSPEC_IMPORT for dll exports.

DECLSPEC_IMPORT interferes with delay imports on MinGW.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/dde.h      | 2 +-
 include/ddeml.h    | 2 +-
 include/slpublic.h | 2 +-
 include/winbase.h  | 4 ++--
 include/wincred.h  | 2 +-
 include/wincrypt.h | 2 +-
 include/wingdi.h   | 4 ++--
 include/winnls.h   | 2 +-
 include/winsvc.h   | 2 +-
 include/winuser.h  | 2 +-
 include/wmium.h    | 2 +-
 11 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/include/dde.h b/include/dde.h
index 976c457..3562361 100644
--- a/include/dde.h
+++ b/include/dde.h
@@ -31,7 +31,7 @@ extern "C" {
 #ifdef _USER32_
 #define WINUSERAPI
 #else
-#define WINUSERAPI DECLSPEC_IMPORT
+#define WINUSERAPI DECLSPEC_HIDDEN
 #endif
 
 #include <dde.rh>
diff --git a/include/ddeml.h b/include/ddeml.h
index e769662..39c8c50 100644
--- a/include/ddeml.h
+++ b/include/ddeml.h
@@ -29,7 +29,7 @@ extern "C" {
 #ifdef _USER32_
 #define WINUSERAPI
 #else
-#define WINUSERAPI DECLSPEC_IMPORT
+#define WINUSERAPI DECLSPEC_HIDDEN
 #endif
 
 /* Codepage Constants
diff --git a/include/slpublic.h b/include/slpublic.h
index 97fa8c7..3f3a392 100644
--- a/include/slpublic.h
+++ b/include/slpublic.h
@@ -26,7 +26,7 @@ extern "C" {
 #ifdef _SLC_
 #define SLCAPI
 #else
-#define SLCAPI DECLSPEC_IMPORT
+#define SLCAPI DECLSPEC_HIDDEN
 #endif
 
 typedef GUID SLID;
diff --git a/include/winbase.h b/include/winbase.h
index 6c97afe..314a8b7 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -28,13 +28,13 @@ extern "C" {
 #ifdef _KERNEL32_
 #define WINBASEAPI
 #else
-#define WINBASEAPI DECLSPEC_IMPORT
+#define WINBASEAPI DECLSPEC_HIDDEN
 #endif
 
 #ifdef _ADVAPI32_
 #define WINADVAPI
 #else
-#define WINADVAPI DECLSPEC_IMPORT
+#define WINADVAPI DECLSPEC_HIDDEN
 #endif
 
 #include <libloaderapi.h>
diff --git a/include/wincred.h b/include/wincred.h
index 86934b8..e8b5e67 100644
--- a/include/wincred.h
+++ b/include/wincred.h
@@ -26,7 +26,7 @@ extern "C" {
 #ifdef _ADVAPI32_
 #define WINADVAPI
 #else
-#define WINADVAPI DECLSPEC_IMPORT
+#define WINADVAPI DECLSPEC_HIDDEN
 #endif
 
 #ifndef __SECHANDLE_DEFINED__
diff --git a/include/wincrypt.h b/include/wincrypt.h
index 8d9106e..8ab503c 100644
--- a/include/wincrypt.h
+++ b/include/wincrypt.h
@@ -31,7 +31,7 @@ extern "C" {
 #ifdef _ADVAPI32_
 # define WINADVAPI
 #else
-# define WINADVAPI DECLSPEC_IMPORT
+# define WINADVAPI DECLSPEC_HIDDEN
 #endif
 
 /* some typedefs for function parameters */
diff --git a/include/wingdi.h b/include/wingdi.h
index 347ce1a..bed2c70 100644
--- a/include/wingdi.h
+++ b/include/wingdi.h
@@ -27,13 +27,13 @@ extern "C" {
 #ifdef _GDI32_
 #define WINGDIAPI
 #else
-#define WINGDIAPI DECLSPEC_IMPORT
+#define WINGDIAPI DECLSPEC_HIDDEN
 #endif
 
 #ifdef _OPENGL32_
 #define WGLAPI
 #else
-#define WGLAPI DECLSPEC_IMPORT
+#define WGLAPI DECLSPEC_HIDDEN
 #endif
 
 typedef struct _ABCFLOAT {
diff --git a/include/winnls.h b/include/winnls.h
index 5e5d8d1..3be5077 100644
--- a/include/winnls.h
+++ b/include/winnls.h
@@ -25,7 +25,7 @@ extern "C" {
 #endif
 
 #ifndef _NORMALIZE_
-# define WINNORMALIZEAPI DECLSPEC_IMPORT
+# define WINNORMALIZEAPI DECLSPEC_HIDDEN
 #else
 # define WINNORMALIZEAPI
 #endif
diff --git a/include/winsvc.h b/include/winsvc.h
index 9db35dd..8509d17 100644
--- a/include/winsvc.h
+++ b/include/winsvc.h
@@ -26,7 +26,7 @@ extern "C" {
 #ifdef _ADVAPI32_
 #define WINADVAPI
 #else
-#define WINADVAPI DECLSPEC_IMPORT
+#define WINADVAPI DECLSPEC_HIDDEN
 #endif
 
 /* Service database names */
diff --git a/include/winuser.h b/include/winuser.h
index a489cb7..60bc473 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -20,7 +20,7 @@
 #define _WINUSER_
 
 #if !defined(_USER32_)
-#define WINUSERAPI DECLSPEC_IMPORT
+#define WINUSERAPI DECLSPEC_HIDDEN
 #else
 #define WINUSERAPI
 #endif
diff --git a/include/wmium.h b/include/wmium.h
index bbb13a3..887c2b4 100644
--- a/include/wmium.h
+++ b/include/wmium.h
@@ -22,7 +22,7 @@
 #ifdef _WMI_SOURCE_
 #define WMIAPI __stdcall
 #else
-#define WMIAPI DECLSPEC_IMPORT __stdcall
+#define WMIAPI DECLSPEC_HIDDEN __stdcall
 #endif
 
 #include <guiddef.h>




More information about the wine-cvs mailing list