This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[patch] Fix open extern "C" in newlib's machine/setjmp.h
- From: David Vrabel <dvrabel at arcom dot com>
- To: newlib at sources dot redhat dot com
- Date: Thu, 07 Oct 2004 14:07:03 +0100
- Subject: [patch] Fix open extern "C" in newlib's machine/setjmp.h
Hi,
newlib/libc/include/machine/setjmp.h has an open extern "C" block when
building for certain architectures (e.g., generic i386).
This showed up during a GCC 3.4.2 build for i386-elf targets (for eCos)
as a failure in generated the precompiled stdc++ headers.
David Vrabel
ps. I'm not subscribed.
--- newlib-1.12.0.orig/newlib/libc/include/machine/setjmp.h Tue Oct
5 12:53:54 2004
+++ newlib-1.12.0/newlib/libc/include/machine/setjmp.h Thu Oct 7
13:43:51 2004@@ -204,8 +204,6 @@
typedef int jmp_buf[_JBLEN];
#endif
-_END_STD_C
-
#if defined(__CYGWIN__) || defined(__rtems__)
#include <signal.h>
@@ -236,3 +234,5 @@
#endif
#endif /* __CYGWIN__ or __rtems__ */
#endif
+
+_END_STD_C