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@winehq.org>
This commit is contained in:
parent
9c6f2e2d88
commit
60ac1cec62
|
@ -31,7 +31,7 @@ extern "C" {
|
||||||
#ifdef _USER32_
|
#ifdef _USER32_
|
||||||
#define WINUSERAPI
|
#define WINUSERAPI
|
||||||
#else
|
#else
|
||||||
#define WINUSERAPI DECLSPEC_IMPORT
|
#define WINUSERAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <dde.rh>
|
#include <dde.rh>
|
||||||
|
|
|
@ -29,7 +29,7 @@ extern "C" {
|
||||||
#ifdef _USER32_
|
#ifdef _USER32_
|
||||||
#define WINUSERAPI
|
#define WINUSERAPI
|
||||||
#else
|
#else
|
||||||
#define WINUSERAPI DECLSPEC_IMPORT
|
#define WINUSERAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Codepage Constants
|
/* Codepage Constants
|
||||||
|
|
|
@ -26,7 +26,7 @@ extern "C" {
|
||||||
#ifdef _SLC_
|
#ifdef _SLC_
|
||||||
#define SLCAPI
|
#define SLCAPI
|
||||||
#else
|
#else
|
||||||
#define SLCAPI DECLSPEC_IMPORT
|
#define SLCAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef GUID SLID;
|
typedef GUID SLID;
|
||||||
|
|
|
@ -28,13 +28,13 @@ extern "C" {
|
||||||
#ifdef _KERNEL32_
|
#ifdef _KERNEL32_
|
||||||
#define WINBASEAPI
|
#define WINBASEAPI
|
||||||
#else
|
#else
|
||||||
#define WINBASEAPI DECLSPEC_IMPORT
|
#define WINBASEAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _ADVAPI32_
|
#ifdef _ADVAPI32_
|
||||||
#define WINADVAPI
|
#define WINADVAPI
|
||||||
#else
|
#else
|
||||||
#define WINADVAPI DECLSPEC_IMPORT
|
#define WINADVAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <libloaderapi.h>
|
#include <libloaderapi.h>
|
||||||
|
|
|
@ -26,7 +26,7 @@ extern "C" {
|
||||||
#ifdef _ADVAPI32_
|
#ifdef _ADVAPI32_
|
||||||
#define WINADVAPI
|
#define WINADVAPI
|
||||||
#else
|
#else
|
||||||
#define WINADVAPI DECLSPEC_IMPORT
|
#define WINADVAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __SECHANDLE_DEFINED__
|
#ifndef __SECHANDLE_DEFINED__
|
||||||
|
|
|
@ -31,7 +31,7 @@ extern "C" {
|
||||||
#ifdef _ADVAPI32_
|
#ifdef _ADVAPI32_
|
||||||
# define WINADVAPI
|
# define WINADVAPI
|
||||||
#else
|
#else
|
||||||
# define WINADVAPI DECLSPEC_IMPORT
|
# define WINADVAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* some typedefs for function parameters */
|
/* some typedefs for function parameters */
|
||||||
|
|
|
@ -27,13 +27,13 @@ extern "C" {
|
||||||
#ifdef _GDI32_
|
#ifdef _GDI32_
|
||||||
#define WINGDIAPI
|
#define WINGDIAPI
|
||||||
#else
|
#else
|
||||||
#define WINGDIAPI DECLSPEC_IMPORT
|
#define WINGDIAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _OPENGL32_
|
#ifdef _OPENGL32_
|
||||||
#define WGLAPI
|
#define WGLAPI
|
||||||
#else
|
#else
|
||||||
#define WGLAPI DECLSPEC_IMPORT
|
#define WGLAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct _ABCFLOAT {
|
typedef struct _ABCFLOAT {
|
||||||
|
|
|
@ -25,7 +25,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _NORMALIZE_
|
#ifndef _NORMALIZE_
|
||||||
# define WINNORMALIZEAPI DECLSPEC_IMPORT
|
# define WINNORMALIZEAPI DECLSPEC_HIDDEN
|
||||||
#else
|
#else
|
||||||
# define WINNORMALIZEAPI
|
# define WINNORMALIZEAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,7 +26,7 @@ extern "C" {
|
||||||
#ifdef _ADVAPI32_
|
#ifdef _ADVAPI32_
|
||||||
#define WINADVAPI
|
#define WINADVAPI
|
||||||
#else
|
#else
|
||||||
#define WINADVAPI DECLSPEC_IMPORT
|
#define WINADVAPI DECLSPEC_HIDDEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Service database names */
|
/* Service database names */
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#define _WINUSER_
|
#define _WINUSER_
|
||||||
|
|
||||||
#if !defined(_USER32_)
|
#if !defined(_USER32_)
|
||||||
#define WINUSERAPI DECLSPEC_IMPORT
|
#define WINUSERAPI DECLSPEC_HIDDEN
|
||||||
#else
|
#else
|
||||||
#define WINUSERAPI
|
#define WINUSERAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#ifdef _WMI_SOURCE_
|
#ifdef _WMI_SOURCE_
|
||||||
#define WMIAPI __stdcall
|
#define WMIAPI __stdcall
|
||||||
#else
|
#else
|
||||||
#define WMIAPI DECLSPEC_IMPORT __stdcall
|
#define WMIAPI DECLSPEC_HIDDEN __stdcall
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <guiddef.h>
|
#include <guiddef.h>
|
||||||
|
|
Loading…
Reference in New Issue