__cdecl is the default implicit calling convention. Add explicit __cdecl to
make it clear that SEH handlers are of __cdecl calling convention.
---
mingw-w64-crt/crt/crt_handler.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mingw-w64-crt/crt/crt_handler.c b/mingw-w64-crt/crt/crt_handler.c
index c10f14efe60f..e214d8768e28 100644
--- a/mingw-w64-crt/crt/crt_handler.c
+++ b/mingw-w64-crt/crt/crt_handler.c
@@ -31,7 +31,7 @@ int __mingw_init_ehandler (void);
extern void _fpreset (void);
#if defined(__x86_64__) && !defined(_MSC_VER) && !defined(__SEH__)
-EXCEPTION_DISPOSITION __mingw_SEH_error_handler(struct _EXCEPTION_RECORD *,
void *, struct _CONTEXT *, void *);
+EXCEPTION_DISPOSITION __cdecl __mingw_SEH_error_handler(struct
_EXCEPTION_RECORD *, void *, struct _CONTEXT *, void *);
#define MAX_PDATA_ENTRIES 32
static RUNTIME_FUNCTION emu_pdata[MAX_PDATA_ENTRIES];
@@ -76,7 +76,7 @@ __mingw_init_ehandler (void)
extern void _fpreset (void);
-EXCEPTION_DISPOSITION
+EXCEPTION_DISPOSITION __cdecl
__mingw_SEH_error_handler (struct _EXCEPTION_RECORD* ExceptionRecord,
void *EstablisherFrame __attribute__ ((unused)),
struct _CONTEXT* ContextRecord __attribute__
((unused)),
--
2.20.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public