> -----Original Message----- > From: Martin Sebor [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 08, 2007 9:27 PM > To: stdcxx-dev@incubator.apache.org > Subject: Re: 18.exception.cpp test on Cygwin > > Farid Zaripov wrote: > > The 18.exception.cpp test fails to compile on gcc 3.4.4/Cygwin. > > Do you have a suggestion for a fix?
I see 3 possible ways: 1) fix only 18.exception.cpp test to use ::setjmp() instead of std::setjmp() (#including <setjmp.h> instead of <csetjmp>) 2) in our ansi/csetjmp header file add checking and #defining setjmp macro: #ifndef setjmp #define setjmp(env) setjmp (env) #endif 3) check for presence of setjmp() function using new /etc/src/SETJMP.cpp file and introduce it in std namespace in our ansi/csetjmp header file: #ifndef _RWSTD_NO_SETJMP namespace std { using ::setjmp; } // namespace std #endif Farid.