On Friday 26 December 2025 12:00:34 LIU Hao wrote: > 在 2025-12-26 11:31, LIU Hao 写道: > > 在 2025-12-26 07:08, Pali Rohár 写道: > > > WinSDK header files also defines EXCEPTION_DISPOSITION as enum. > > > --- > > > mingw-w64-headers/crt/excpt.h | 13 ++++++------- > > > 1 file changed, 6 insertions(+), 7 deletions(-) > > > > > > > Somewhere in libunwind, an integer is returned (maybe it should be fixed > > in libubwind), so this breaks libunwind somehow: > > > > > > https://github.com/llvm/llvm-project/blob/7dcd69880102cda2fe1a43f3356abb0ec41f2dc4/libunwind/src/Unwind- > > seh.cpp#L166 > > Looks like it's not an actual return to Windows, but a magic value for > internal use in libunwind: > > https://github.com/llvm/llvm-project/blob/7dcd69880102cda2fe1a43f3356abb0ec41f2dc4/libunwind/src/Unwind-seh.cpp#L272
I think that is fine because return value is _Unwind_Reason_Code. Also I think that it is fine to return in C++ numeric constant in function which return type is C enum. So it should not cause compile issues. _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
