stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject RE: 18.exception.cpp test on Cygwin
Date Wed, 08 Aug 2007 19:03:04 GMT
> -----Original Message-----
> From: Martin Sebor [mailto:sebor@roguewave.com] 
> 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.

Mime
View raw message