This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] Add NO_IMPLICIT_EXTERN_C for netbsd


Here's the obvious fix for netbsd. Discussed almost a year ago on the
netbsd lists as the way to go. Obvious stopgap until PR 15834 is done.

-eric

2004-12-06  Eric Christopher  <echristo@redhat.com>
	
	PR target/16317
	* config/netbsd.h: Add NO_IMPLICIT_EXTERN_C.

Index: netbsd.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/netbsd.h,v
retrieving revision 1.30
diff -u -p -w -r1.30 netbsd.h
--- netbsd.h	17 Oct 2004 18:09:35 -0000	1.30
+++ netbsd.h	7 Dec 2004 07:19:40 -0000
@@ -163,6 +163,9 @@ Boston, MA 02111-1307, USA.  */
 
 #define HANDLE_SYSV_PRAGMA 1
 
+/* Don't assume anything about the header files.  */
+#undef  NO_IMPLICIT_EXTERN_C
+#define NO_IMPLICIT_EXTERN_C    1
 
 /* Define some types that are the same on all NetBSD platforms,
    making them agree with <machine/ansi.h>.  */



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