Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 7 Nov 2005 18:00:37 +0100 From: Corinna Vinschen To: newlib AT sources DOT redhat DOT com Cc: cygwin AT cygwin DOT com Subject: Re: ieeefp.h: C++ guards Message-ID: <20051107170037.GA3280@calimero.vinschen.de> Reply-To: newlib AT sources DOT redhat DOT com Mail-Followup-To: newlib AT sources DOT redhat DOT com, cygwin AT cygwin DOT com References: <436E8689 DOT 7040601 AT users DOT sourceforge DOT net> <20051107162929 DOT GL2988 AT calimero DOT vinschen DOT de> <436F84AF DOT 1080801 AT redhat DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <436F84AF.1080801@redhat.com> User-Agent: Mutt/1.4.2i On Nov 7 11:45, Jeff Johnston wrote: > Corinna Vinschen wrote: > >On Nov 6 16:41, Yaakov S (Cygwin Ports) wrote: > > > >>The ieeefp.h header does not contain C++ guards. Is there a reason for > >>this? > >> > >>This particularly affects C++ perl extensions, as perl.h includes > >>ieeefp.h, although I just ran across another, non-perl case where it > >>caused a compilation error. > >> > >> > >>Yaakov > > > > > >This is a newlib issue since ieeefp.h is a newlib header file. I've > >redirected to the newlib list. A patch like the below should do the > >trick. Jeff? > > > > Seems very sensible considering that a number of the identifiers are > also declared in math.h and protected there (e.g. isnan). > > -- Jeff J. Thanks, applied without the copy/pasted #define's :-} Corinna > > * libc/include/ieeefp.h: Add C++ guards. > > > > > >Index: libc/include/ieeefp.h > >=================================================================== > >RCS file: /cvs/src/src/newlib/libc/include/ieeefp.h,v > >retrieving revision 1.1.1.1 > >diff -u -p -r1.1.1.1 ieeefp.h > >--- libc/include/ieeefp.h 17 Feb 2000 19:39:46 -0000 1.1.1.1 > >+++ libc/include/ieeefp.h 7 Nov 2005 16:26:24 -0000 > >@@ -5,6 +5,8 @@ > > > > #include > > > >+#define _BEGIN_STD_C > >+ > > /* FIXME FIXME FIXME: > > Neither of __ieee_{float,double}_shape_tape seem to be used anywhere > > except in libm/test. If that is the case, please delete these from > > here. > >@@ -238,4 +240,6 @@ int _EXFUN(finitef, (float)); > > > > #endif /* _DOUBLE_IS_32BITS */ > > > >+#define _END_STD_C > >+ > > #endif /* _IEEE_FP_H_ */ > > > > -- Corinna Vinschen Cygwin Project Co-Leader Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/