Module: wine Branch: master Commit: d597d04924a79e67e49d63ce5790fb1fe3e39d5e URL: https://gitlab.winehq.org/wine/wine/-/commit/d597d04924a79e67e49d63ce5790fb1...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Nov 8 10:09:22 2023 +0100
include: Remove DECLSPEC_HIDDEN from winecrt0 functions.
---
dlls/winecrt0/dll_entry.c | 4 ++-- dlls/winecrt0/exe16_entry.c | 2 +- dlls/winecrt0/exe_entry.c | 4 ++-- dlls/winecrt0/exe_wentry.c | 4 ++-- dlls/winecrt0/stub.c | 2 +- include/rpcproxy.h | 4 ++-- include/wine/exception.h | 18 +++++++++--------- include/wine/unixlib.h | 6 +++--- 8 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/dlls/winecrt0/dll_entry.c b/dlls/winecrt0/dll_entry.c index 61ce0cf024f..b5b6e2e6159 100644 --- a/dlls/winecrt0/dll_entry.c +++ b/dlls/winecrt0/dll_entry.c @@ -29,9 +29,9 @@ #include "windef.h" #include "winbase.h"
-extern void __wine_init_so_dll(void) DECLSPEC_HIDDEN; +extern void __wine_init_so_dll(void);
-BOOL WINAPI DECLSPEC_HIDDEN __wine_spec_dll_entry( HINSTANCE inst, DWORD reason, LPVOID reserved ) +BOOL WINAPI __wine_spec_dll_entry( HINSTANCE inst, DWORD reason, LPVOID reserved ) { if (reason == DLL_PROCESS_ATTACH) __wine_init_so_dll(); return DllMain( inst, reason, reserved ); diff --git a/dlls/winecrt0/exe16_entry.c b/dlls/winecrt0/exe16_entry.c index e6823b29699..02992ab049e 100644 --- a/dlls/winecrt0/exe16_entry.c +++ b/dlls/winecrt0/exe16_entry.c @@ -28,7 +28,7 @@
extern WORD WINAPI WinMain16( HINSTANCE16 inst, HINSTANCE16 prev, LPSTR cmdline, WORD show );
-void WINAPI DECLSPEC_HIDDEN __wine_spec_exe16_entry( CONTEXT *context ) +void WINAPI __wine_spec_exe16_entry( CONTEXT *context ) { PDB16 *psp; WORD len; diff --git a/dlls/winecrt0/exe_entry.c b/dlls/winecrt0/exe_entry.c index 44a98109f8b..def7b57c38d 100644 --- a/dlls/winecrt0/exe_entry.c +++ b/dlls/winecrt0/exe_entry.c @@ -31,7 +31,7 @@ #include "winternl.h"
extern int main( int argc, char *argv[] ); -extern void __wine_init_so_dll(void) DECLSPEC_HIDDEN; +extern void __wine_init_so_dll(void);
static char **build_argv( const char *src, int *ret_argc ) { @@ -96,7 +96,7 @@ static char **build_argv( const char *src, int *ret_argc ) return argv; }
-DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_entry( PEB *peb ) +DWORD WINAPI __wine_spec_exe_entry( PEB *peb ) { int argc; char **argv = build_argv( GetCommandLineA(), &argc ); diff --git a/dlls/winecrt0/exe_wentry.c b/dlls/winecrt0/exe_wentry.c index 5fdec771ce5..303e9e5a69b 100644 --- a/dlls/winecrt0/exe_wentry.c +++ b/dlls/winecrt0/exe_wentry.c @@ -31,7 +31,7 @@ #include "winternl.h"
extern int wmain( int argc, WCHAR *argv[] ); -extern void __wine_init_so_dll(void) DECLSPEC_HIDDEN; +extern void __wine_init_so_dll(void);
static WCHAR **build_argv( const WCHAR *src, int *ret_argc ) { @@ -96,7 +96,7 @@ static WCHAR **build_argv( const WCHAR *src, int *ret_argc ) return argv; }
-DWORD WINAPI DECLSPEC_HIDDEN __wine_spec_exe_wentry( PEB *peb ) +DWORD WINAPI __wine_spec_exe_wentry( PEB *peb ) { int argc; WCHAR **argv = build_argv( GetCommandLineW(), &argc ); diff --git a/dlls/winecrt0/stub.c b/dlls/winecrt0/stub.c index 49fd273def2..c1198561886 100644 --- a/dlls/winecrt0/stub.c +++ b/dlls/winecrt0/stub.c @@ -23,7 +23,7 @@ #include "winbase.h" #include "wine/exception.h"
-void DECLSPEC_HIDDEN __cdecl __wine_spec_unimplemented_stub( const char *module, const char *function ) +void __cdecl __wine_spec_unimplemented_stub( const char *module, const char *function ) { ULONG_PTR args[2];
diff --git a/include/rpcproxy.h b/include/rpcproxy.h index 87bb7022629..747d2225954 100644 --- a/include/rpcproxy.h +++ b/include/rpcproxy.h @@ -191,8 +191,8 @@ RPCRTAPI HRESULT RPC_ENTRY RPCRTAPI HRESULT RPC_ENTRY NdrDllUnregisterProxy( HMODULE hDll, const ProxyFileInfo **pProxyFileList, const CLSID *pclsid );
-HRESULT __cdecl __wine_register_resources(void) DECLSPEC_HIDDEN; -HRESULT __cdecl __wine_unregister_resources(void) DECLSPEC_HIDDEN; +HRESULT __cdecl __wine_register_resources(void); +HRESULT __cdecl __wine_unregister_resources(void);
#define CSTDSTUBBUFFERRELEASE(pFactory) \ ULONG WINAPI CStdStubBuffer_Release(IRpcStubBuffer *This) \ diff --git a/include/wine/exception.h b/include/wine/exception.h index 51446ad7403..580c5ff556c 100644 --- a/include/wine/exception.h +++ b/include/wine/exception.h @@ -109,34 +109,34 @@ typedef struct { int reg; } __wine_jmp_buf; #endif
extern int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) __wine_setjmpex( __wine_jmp_buf *buf, - EXCEPTION_REGISTRATION_RECORD *frame ) DECLSPEC_HIDDEN; -extern void DECLSPEC_NORETURN __cdecl __wine_longjmp( __wine_jmp_buf *buf, int retval ) DECLSPEC_HIDDEN; + EXCEPTION_REGISTRATION_RECORD *frame ); +extern void DECLSPEC_NORETURN __cdecl __wine_longjmp( __wine_jmp_buf *buf, int retval ); extern void DECLSPEC_NORETURN __cdecl __wine_rtl_unwind( EXCEPTION_REGISTRATION_RECORD* frame, EXCEPTION_RECORD *record, - void (*target)(void) ) DECLSPEC_HIDDEN; + void (*target)(void) ); extern DWORD __cdecl __wine_exception_handler( EXCEPTION_RECORD *record, EXCEPTION_REGISTRATION_RECORD *frame, CONTEXT *context, - EXCEPTION_REGISTRATION_RECORD **pdispatcher ) DECLSPEC_HIDDEN; + EXCEPTION_REGISTRATION_RECORD **pdispatcher ); extern DWORD __cdecl __wine_exception_ctx_handler( EXCEPTION_RECORD *record, EXCEPTION_REGISTRATION_RECORD *frame, CONTEXT *context, - EXCEPTION_REGISTRATION_RECORD **pdispatcher ) DECLSPEC_HIDDEN; + EXCEPTION_REGISTRATION_RECORD **pdispatcher ); extern DWORD __cdecl __wine_exception_handler_page_fault( EXCEPTION_RECORD *record, EXCEPTION_REGISTRATION_RECORD *frame, CONTEXT *context, - EXCEPTION_REGISTRATION_RECORD **pdispatcher ) DECLSPEC_HIDDEN; + EXCEPTION_REGISTRATION_RECORD **pdispatcher ); extern DWORD __cdecl __wine_exception_handler_all( EXCEPTION_RECORD *record, EXCEPTION_REGISTRATION_RECORD *frame, CONTEXT *context, - EXCEPTION_REGISTRATION_RECORD **pdispatcher ) DECLSPEC_HIDDEN; + EXCEPTION_REGISTRATION_RECORD **pdispatcher ); extern DWORD __cdecl __wine_finally_handler( EXCEPTION_RECORD *record, EXCEPTION_REGISTRATION_RECORD *frame, CONTEXT *context, - EXCEPTION_REGISTRATION_RECORD **pdispatcher ) DECLSPEC_HIDDEN; + EXCEPTION_REGISTRATION_RECORD **pdispatcher ); extern DWORD __cdecl __wine_finally_ctx_handler( EXCEPTION_RECORD *record, EXCEPTION_REGISTRATION_RECORD *frame, CONTEXT *context, - EXCEPTION_REGISTRATION_RECORD **pdispatcher ) DECLSPEC_HIDDEN; + EXCEPTION_REGISTRATION_RECORD **pdispatcher );
#define __TRY \ do { __WINE_FRAME __f; \ diff --git a/include/wine/unixlib.h b/include/wine/unixlib.h index 26c6d68071d..46b5e982943 100644 --- a/include/wine/unixlib.h +++ b/include/wine/unixlib.h @@ -271,9 +271,9 @@ static inline ULONG ntdll_wcstoul( const WCHAR *s, WCHAR **end, int base ) #else /* WINE_UNIX_LIB */
NTSYSAPI NTSTATUS WINAPI __wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args ); -extern unixlib_handle_t __wine_unixlib_handle DECLSPEC_HIDDEN; -extern NTSTATUS (WINAPI *__wine_unix_call_dispatcher)( unixlib_handle_t, unsigned int, void * ) DECLSPEC_HIDDEN; -extern NTSTATUS WINAPI __wine_init_unix_call(void) DECLSPEC_HIDDEN; +extern unixlib_handle_t __wine_unixlib_handle; +extern NTSTATUS (WINAPI *__wine_unix_call_dispatcher)( unixlib_handle_t, unsigned int, void * ); +extern NTSTATUS WINAPI __wine_init_unix_call(void);
#define WINE_UNIX_CALL(code,args) __wine_unix_call_dispatcher( __wine_unixlib_handle, (code), (args) )