Commit d92b5971 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Use proper dllimports for user32 functions.

parent 402d50d5
EXTRADEFS = -DWINBASEAPI= -DWINADVAPI= EXTRADEFS = -DWINBASEAPI= -DWINADVAPI= -DWINUSERAPI=
MODULE = kernelbase.dll MODULE = kernelbase.dll
IMPORTLIB = kernelbase IMPORTLIB = kernelbase
IMPORTS = uuid ntdll winecrt0 IMPORTS = uuid ntdll winecrt0
......
EXTRADEFS = -DWINGDIAPI= EXTRADEFS = -DWINGDIAPI= -DWINUSERAPI=
MODULE = win32u.dll MODULE = win32u.dll
UNIXLIB = win32u.so UNIXLIB = win32u.so
IMPORTLIB = win32u IMPORTLIB = win32u
......
...@@ -28,10 +28,12 @@ ...@@ -28,10 +28,12 @@
extern "C" { extern "C" {
#endif #endif
#ifndef WINUSERAPI
#if defined(_USER32_) || defined(WINE_UNIX_LIB) #if defined(_USER32_) || defined(WINE_UNIX_LIB)
#define WINUSERAPI #define WINUSERAPI
#else #else
#define WINUSERAPI DECLSPEC_HIDDEN #define WINUSERAPI DECLSPEC_IMPORT
#endif
#endif #endif
#include <dde.rh> #include <dde.rh>
......
...@@ -26,10 +26,12 @@ ...@@ -26,10 +26,12 @@
extern "C" { extern "C" {
#endif /* defined(__cplusplus) */ #endif /* defined(__cplusplus) */
#ifndef WINUSERAPI
#if defined(_USER32_) || defined(WINE_UNIX_LIB) #if defined(_USER32_) || defined(WINE_UNIX_LIB)
#define WINUSERAPI #define WINUSERAPI
#else #else
#define WINUSERAPI DECLSPEC_HIDDEN #define WINUSERAPI DECLSPEC_IMPORT
#endif
#endif #endif
/* Codepage Constants /* Codepage Constants
......
...@@ -19,11 +19,13 @@ ...@@ -19,11 +19,13 @@
#ifndef _WINUSER_ #ifndef _WINUSER_
#define _WINUSER_ #define _WINUSER_
#ifndef WINUSERAPI
#if !defined(_USER32_) && !defined(WINE_UNIX_LIB) #if !defined(_USER32_) && !defined(WINE_UNIX_LIB)
#define WINUSERAPI DECLSPEC_HIDDEN #define WINUSERAPI DECLSPEC_IMPORT
#else #else
#define WINUSERAPI #define WINUSERAPI
#endif #endif
#endif
#ifndef RC_INVOKED #ifndef RC_INVOKED
#include <stdarg.h> #include <stdarg.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