This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]