mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-03 01:10:24 +08:00
libbacktrace: fix syntax of Windows registration functions
Adjust the syntax to keep MSVC happy. Fixes https://github.com/ianlancetaylor/libbacktrace/issues/131 * pecoff.c (LDR_DLL_NOTIFICATION): Put function modifier inside parentheses. (LDR_REGISTER_FUNCTION): Likewise.
This commit is contained in:
parent
2d105efd6f
commit
37aa98f79a
@ -83,10 +83,10 @@ struct dll_notification_data
|
||||
#define LDR_DLL_NOTIFICATION_REASON_LOADED 1
|
||||
|
||||
typedef LONG NTSTATUS;
|
||||
typedef VOID CALLBACK (*LDR_DLL_NOTIFICATION)(ULONG,
|
||||
typedef VOID (CALLBACK *LDR_DLL_NOTIFICATION)(ULONG,
|
||||
struct dll_notification_data*,
|
||||
PVOID);
|
||||
typedef NTSTATUS NTAPI (*LDR_REGISTER_FUNCTION)(ULONG,
|
||||
typedef NTSTATUS (NTAPI *LDR_REGISTER_FUNCTION)(ULONG,
|
||||
LDR_DLL_NOTIFICATION, PVOID,
|
||||
PVOID*);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user