]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libbacktrace: fix syntax of Windows registration functions
authorIan Lance Taylor <iant@golang.org>
Tue, 30 Jul 2024 16:25:03 +0000 (09:25 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 30 Jul 2024 16:27:59 +0000 (09:27 -0700)
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.

libbacktrace/pecoff.c

index 636e1b11296b783fe39e086d702f08151007bdaa..ccd5ccbce2ce3db8cda636b2df169895dbca715e 100644 (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