Mail Archives: djgpp-workers/2001/02/07/14:03:55
Here's the setjmp.h patch. One slight complication here is that the
C++ standard requires setjmp to be a macro, but DJGPP defines it as
a function. I don't think this is really a problem, so rather than
attempting to fix it, I've just made sure that setjmp is visible in
the global namespace.
Stephen
*** include/setjmp.h.old Thu Jun 3 17:22:28 1999
--- include/setjmp.h Mon Feb 5 18:33:00 2001
***************
*** 5,8 ****
--- 5,9 ----
#ifdef __cplusplus
+ namespace std {
extern "C" {
#endif
***************
*** 41,45 ****
--- 42,67 ----
#ifdef __cplusplus
}
+ }
#endif
#endif /* !__dj_include_setjmp_h_ */
+
+
+ #if defined(__cplusplus) && !defined(__dj_ENFORCE_ANSI_FREESTANDING)
+
+ using std::setjmp;
+
+ #ifndef __dj_via_cplusplus_header_
+
+ using std::longjmp;
+ using std::jmp_buf;
+
+ #ifndef __STRICT_ANSI__
+
+ using std::sigjmp_buf;
+ using std::sigsetjmp;
+ using std::siglongjmp;
+
+ #endif /* !__STRICT_ANSI__ */
+ #endif /* !__dj_via_cplusplus_header_ */
+ #endif /* __cplusplus && !__dj_ENFORCE_ANSI_FREESTANDING */
- Raw text -