Module: wine Branch: master Commit: c14de4c85e79563f5e859765d0015892ae925cd6 URL: https://gitlab.winehq.org/wine/wine/-/commit/c14de4c85e79563f5e859765d001589...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Nov 29 20:53:08 2023 +0100
include: Remove DECLSPEC_HIDDEN definition.
---
dlls/dnsapi/dnsapi.h | 2 +- dlls/win32u/ntuser_private.h | 2 +- include/winnt.h | 18 ++++-------------- 3 files changed, 6 insertions(+), 16 deletions(-)
diff --git a/dlls/dnsapi/dnsapi.h b/dlls/dnsapi/dnsapi.h index eff5e3582cf..d2b57b96972 100644 --- a/dlls/dnsapi/dnsapi.h +++ b/dlls/dnsapi/dnsapi.h @@ -97,7 +97,7 @@ static inline char *strdup_ua( const char *src ) return dst; }
-extern const char *debugstr_type( unsigned short ) DECLSPEC_HIDDEN; +extern const char *debugstr_type( unsigned short );
struct get_searchlist_params { diff --git a/dlls/win32u/ntuser_private.h b/dlls/win32u/ntuser_private.h index 943384efc30..496d6bab9fe 100644 --- a/dlls/win32u/ntuser_private.h +++ b/dlls/win32u/ntuser_private.h @@ -247,7 +247,7 @@ extern void free_dce( struct dce *dce, HWND hwnd ); extern void invalidate_dce( WND *win, const RECT *extra_rect );
/* message.c */ -extern BOOL set_keyboard_auto_repeat( BOOL enable ) DECLSPEC_HIDDEN; +extern BOOL set_keyboard_auto_repeat( BOOL enable );
/* window.c */ HANDLE alloc_user_handle( struct user_object *ptr, unsigned int type ); diff --git a/include/winnt.h b/include/winnt.h index 0af765652b7..67fcc010172 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -51,16 +51,16 @@ extern "C" { #define NTAPI __stdcall #define FASTCALL __fastcall
-#ifndef MIDL_PASS +#ifndef DECLSPEC_IMPORT # if defined(_MSC_VER) # define DECLSPEC_IMPORT __declspec(dllimport) # elif defined(__MINGW32__) || defined(__CYGWIN__) # define DECLSPEC_IMPORT __attribute__((dllimport)) +# elif defined(__GNUC__) +# define DECLSPEC_IMPORT __attribute__((visibility ("hidden"))) # else -# define DECLSPEC_IMPORT DECLSPEC_HIDDEN +# define DECLSPEC_IMPORT # endif -#else -# define DECLSPEC_IMPORT #endif
#ifndef DECLSPEC_NORETURN @@ -193,16 +193,6 @@ extern "C" { # define DECLSPEC_EXPORT #endif
-#ifndef DECLSPEC_HIDDEN -# if defined(_MSC_VER) || defined(__MINGW32__) || defined(__CYGWIN__) || defined(__sun) -# define DECLSPEC_HIDDEN -# elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3))) -# define DECLSPEC_HIDDEN __attribute__((visibility ("hidden"))) -# else -# define DECLSPEC_HIDDEN -# endif -#endif - #ifndef __has_attribute # define __has_attribute(x) 0 #endif