Skip to content

Commit c14de4c

Browse files
committed
include: Remove DECLSPEC_HIDDEN definition.
1 parent bfeba8d commit c14de4c

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

dlls/dnsapi/dnsapi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static inline char *strdup_ua( const char *src )
9797
return dst;
9898
}
9999

100-
extern const char *debugstr_type( unsigned short ) DECLSPEC_HIDDEN;
100+
extern const char *debugstr_type( unsigned short );
101101

102102
struct get_searchlist_params
103103
{

dlls/win32u/ntuser_private.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ extern void free_dce( struct dce *dce, HWND hwnd );
247247
extern void invalidate_dce( WND *win, const RECT *extra_rect );
248248

249249
/* message.c */
250-
extern BOOL set_keyboard_auto_repeat( BOOL enable ) DECLSPEC_HIDDEN;
250+
extern BOOL set_keyboard_auto_repeat( BOOL enable );
251251

252252
/* window.c */
253253
HANDLE alloc_user_handle( struct user_object *ptr, unsigned int type );

include/winnt.h

+4-14
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ extern "C" {
5151
#define NTAPI __stdcall
5252
#define FASTCALL __fastcall
5353

54-
#ifndef MIDL_PASS
54+
#ifndef DECLSPEC_IMPORT
5555
# if defined(_MSC_VER)
5656
# define DECLSPEC_IMPORT __declspec(dllimport)
5757
# elif defined(__MINGW32__) || defined(__CYGWIN__)
5858
# define DECLSPEC_IMPORT __attribute__((dllimport))
59+
# elif defined(__GNUC__)
60+
# define DECLSPEC_IMPORT __attribute__((visibility ("hidden")))
5961
# else
60-
# define DECLSPEC_IMPORT DECLSPEC_HIDDEN
62+
# define DECLSPEC_IMPORT
6163
# endif
62-
#else
63-
# define DECLSPEC_IMPORT
6464
#endif
6565

6666
#ifndef DECLSPEC_NORETURN
@@ -193,16 +193,6 @@ extern "C" {
193193
# define DECLSPEC_EXPORT
194194
#endif
195195

196-
#ifndef DECLSPEC_HIDDEN
197-
# if defined(_MSC_VER) || defined(__MINGW32__) || defined(__CYGWIN__) || defined(__sun)
198-
# define DECLSPEC_HIDDEN
199-
# elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
200-
# define DECLSPEC_HIDDEN __attribute__((visibility ("hidden")))
201-
# else
202-
# define DECLSPEC_HIDDEN
203-
# endif
204-
#endif
205-
206196
#ifndef __has_attribute
207197
# define __has_attribute(x) 0
208198
#endif

0 commit comments

Comments
 (0)