[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Missing longjmp definition when compiling C++ programs



Hello,

I would like to know what I should define for setjmp.h to define
longjmp. Some C++ libraries need this symbol:

Some examples:

- In Mesa-6.2.1/glu/sgi/libnurbs/internals/mysetjmp.h:

inline void
mylongjmp( JumpBuffer *j, int code ) 
{
    ::longjmp( j->buf, code );
}

- In gcc-3.4.3/libstdc++-v3/include/c_std/csetjmp.h:

namespace std
{
  using ::jmp_buf;
  using ::longjmp;
}

When looking at mintlib/include/setjmp.h, maybe I should define
__USE_BSD, right ?


-- 
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Spécialité: Développement, jeux