X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=BAYES_00,SARE_MSGID_LONG40
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <416096c60903231319t644a76bfid3f4ecf8badbde21@mail.gmail.com>
References: <75cc17ac0903230840t48e206ccscf86a843fb1c3868@mail.gmail.com> 	 <20090323154439.GV9322@calimero.vinschen.de> 	 <20090323154946.GW9322@calimero.vinschen.de> 	 <75cc17ac0903231305yb0ec066kefddbb24fdbcd986@mail.gmail.com> 	 <416096c60903231319t644a76bfid3f4ecf8badbde21@mail.gmail.com>
Date: Mon, 23 Mar 2009 15:41:23 -0500
Message-ID: <75cc17ac0903231341p519fee60t3d0b3065a38b9e5b@mail.gmail.com>
Subject: Re: strtold, isnormal
From: Gregg Reynolds <dev@mobileink.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mon, Mar 23, 2009 at 3:19 PM, Andy Koppe <andy.koppe@gmail.com> wrote:
>>> Oh, btw., the isnormal macro exists in math.h.
>>
>> Thanks. =C2=A0But for some reason it's not getting picked up:
>>
>> gcc -c -I. -I/usr/local/include -I/home/reynolds-gregg/include
>> -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=3D1 -D_REENTRANT
>> -D__EXTENSIONS__ -D_TC_PREFIX=3D"\"/usr/local\""
>> -D_TC_INCLUDEDIR=3D"\"/usr/local/include\""
>> -D_TC_LIBDIR=3D"\"/usr/local/lib\"" -D_TC_BINDIR=3D"\"/usr/local/bin\""
>> -D_TC_LIBEXECDIR=3D"\"/usr/local/libexec\""
>> -D_TC_APPINC=3D"\"-I/usr/local/include\""
>> -D_TC_APPLIBS=3D"\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -lpthread
>> -lm -lc \"" -I/usr/include -std=3Dc99 -Wall -fPIC -fsigned-char -O2
>> tcutil.c
>>
>> result:
>>
>> tcutil.c:4948: warning: implicit declaration of function `isnormal'
>
> isnormal() and a load of other things are guarded by
> '#if !defined(__STRICT_ANSI__)' in math.h, and __STRICT_ANSI__ does
> get defined for -std=3Dc99.
>
> It's definitely in the C99 standard though, so either the header is
> wrong or __STRICT_ANSI__ shouldn't be defined.
>

Aha!  The fix described here
http://osdir.com/ml/lib.dietlibc/2003-11/msg00005.html seems to work,
although I don't know if it's appropriate for cygwin.  Now I just have
to figure out what to do about strtold.

Thanks,

gregg

--
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/

