Subject: | MSVC build failure |
Show quoted text
______________________________________
#ifdef _MSC_VER
/* "structured exception" handling is a Microsoft extension to C and C++.
It's *not* C++ exception handling - C++ exception handling can't capture
SEGVs and suchlike, whereas this can. There's no known analagous
functionality on other platforms. */
# include <excpt.h>
# define TRY_TO_CATCH_SEGV __try
# define CAUGHT_EXCEPTION __except(EXCEPTION EXCEPTION_EXECUTE_HANDLER)
#else
# define TRY_TO_CATCH_SEGV if(1)
# define CAUGHT_EXCEPTION else
#endif
_______________________________________
_________________________________
# define CAUGHT_EXCEPTION __except(EXCEPTION EXCEPTION_EXECUTE_HANDLER)
________________________________
causes a build failure on MSVC (see
http://ppm4.activestate.com/MSWin32-x86/5.14/1400/N/NW/NWCLARK/Devel-Size-0.77.d/log-20110517T030345.txt
for an example). The line should be
_____________________
# define CAUGHT_EXCEPTION __except(EXCEPTION_EXECUTE_HANDLER)
____________________
It builds and passes nmake test then. It doesn't fail on Mingw Perl
since Mingw/GCC has no SEH support and that code is not selected.