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:
Ian Lance Taylor 2024-07-30 09:25:03 -07:00
parent 2d105efd6f
commit 37aa98f79a

View File

@ -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