Commit 60ac1cec authored by Alexandre Julliard's avatar Alexandre Julliard

include: Use DECLSPEC_HIDDEN instead of DECLSPEC_IMPORT for dll exports.

DECLSPEC_IMPORT interferes with delay imports on MinGW. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9c6f2e2d
......@@ -31,7 +31,7 @@ extern "C" {
#ifdef _USER32_
#define WINUSERAPI
#else
#define WINUSERAPI DECLSPEC_IMPORT
#define WINUSERAPI DECLSPEC_HIDDEN
#endif
#include <dde.rh>
......
......@@ -29,7 +29,7 @@ extern "C" {
#ifdef _USER32_
#define WINUSERAPI
#else
#define WINUSERAPI DECLSPEC_IMPORT
#define WINUSERAPI DECLSPEC_HIDDEN
#endif
/* Codepage Constants
......
......@@ -26,7 +26,7 @@ extern "C" {
#ifdef _SLC_
#define SLCAPI
#else
#define SLCAPI DECLSPEC_IMPORT
#define SLCAPI DECLSPEC_HIDDEN
#endif
typedef GUID SLID;
......
......@@ -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>
......
......@@ -26,7 +26,7 @@ extern "C" {
#ifdef _ADVAPI32_
#define WINADVAPI
#else
#define WINADVAPI DECLSPEC_IMPORT
#define WINADVAPI DECLSPEC_HIDDEN
#endif
#ifndef __SECHANDLE_DEFINED__
......
......@@ -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 */
......
......@@ -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 {
......
......@@ -25,7 +25,7 @@ extern "C" {
#endif
#ifndef _NORMALIZE_
# define WINNORMALIZEAPI DECLSPEC_IMPORT
# define WINNORMALIZEAPI DECLSPEC_HIDDEN
#else
# define WINNORMALIZEAPI
#endif
......
......@@ -26,7 +26,7 @@ extern "C" {
#ifdef _ADVAPI32_
#define WINADVAPI
#else
#define WINADVAPI DECLSPEC_IMPORT
#define WINADVAPI DECLSPEC_HIDDEN
#endif
/* Service database names */
......
......@@ -20,7 +20,7 @@
#define _WINUSER_
#if !defined(_USER32_)
#define WINUSERAPI DECLSPEC_IMPORT
#define WINUSERAPI DECLSPEC_HIDDEN
#else
#define WINUSERAPI
#endif
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment