* Re: Compiling Wine in Cygwin
@ 2003-09-05 20:20 Marcel Telka
2003-09-05 20:28 ` Igor Pechtchanski
2003-09-07 10:26 ` OT? Legacy code and constants / good and portable coding (RE: Compiling Wine in Cygwin) Hannu E K Nevalainen (garbage mail)
0 siblings, 2 replies; 4+ messages in thread
From: Marcel Telka @ 2003-09-05 20:20 UTC (permalink / raw)
To: cygwin
On 05.09.2003 22:06, Gregory Nutt wrote:
> Trying to compile wine-20030813 in the first release of the 1.5.x
> series.
>
> I discovered that shader.c is looking for -HUGE which is apparently
> supposed to be defined in math.h. I was able to make it compile by
> changing the shader.c to look for -HUGE_VAL which is defined in
> cygwin's math.h. However, I'd like to know if this is a bug to report
> to Wine or a bug to report to Cygwin. Since Wine compiles on Linux
> without a problem, I thought I'd start with Cygwin.
IMHO, that is wine-related problem.
<http://www.opengroup.org/onlinepubs/007904975/basedefs/math.h.html>
--
+-------------------------------------------+
| Marcel Telka e-mail: marcel@telka.sk |
| homepage: http://telka.sk/ |
| jabber: marcel@jabber.sk |
+-------------------------------------------+
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compiling Wine in Cygwin
2003-09-05 20:20 Compiling Wine in Cygwin Marcel Telka
@ 2003-09-05 20:28 ` Igor Pechtchanski
2003-09-07 10:26 ` OT? Legacy code and constants / good and portable coding (RE: Compiling Wine in Cygwin) Hannu E K Nevalainen (garbage mail)
1 sibling, 0 replies; 4+ messages in thread
From: Igor Pechtchanski @ 2003-09-05 20:28 UTC (permalink / raw)
To: Marcel Telka; +Cc: cygwin
On Fri, 5 Sep 2003, Marcel Telka wrote:
>
> On 05.09.2003 22:06, Gregory Nutt wrote:
> > Trying to compile wine-20030813 in the first release of the 1.5.x
> > series.
> >
> > I discovered that shader.c is looking for -HUGE which is apparently
> > supposed to be defined in math.h. I was able to make it compile by
> > changing the shader.c to look for -HUGE_VAL which is defined in
> > cygwin's math.h. However, I'd like to know if this is a bug to report
> > to Wine or a bug to report to Cygwin. Since Wine compiles on Linux
> > without a problem, I thought I'd start with Cygwin.
>
> IMHO, that is wine-related problem.
> <http://www.opengroup.org/onlinepubs/007904975/basedefs/math.h.html>
HUGE is a SVID-specific value that is equal to MAXFLOAT on my RedHat 7.3
box. That is *not* the same as HUGE_VAL, BTW, so I'd use MAXFLOAT
instead. HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* OT? Legacy code and constants / good and portable coding (RE: Compiling Wine in Cygwin)
2003-09-05 20:20 Compiling Wine in Cygwin Marcel Telka
2003-09-05 20:28 ` Igor Pechtchanski
@ 2003-09-07 10:26 ` Hannu E K Nevalainen (garbage mail)
1 sibling, 0 replies; 4+ messages in thread
From: Hannu E K Nevalainen (garbage mail) @ 2003-09-07 10:26 UTC (permalink / raw)
To: ML CygWIN
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Of Marcel Telka
> On 05.09.2003 22:06, Gregory Nutt wrote:
> > Trying to compile wine-20030813 in the first release of the 1.5.x
> > series.
> >
> > I discovered that shader.c is looking for -HUGE which is apparently
> > supposed to be defined in math.h. I was able to make it compile by
> > changing the shader.c to look for -HUGE_VAL which is defined in
> > cygwin's math.h. However, I'd like to know if this is a bug to report
> > to Wine or a bug to report to Cygwin. Since Wine compiles on Linux
> > without a problem, I thought I'd start with Cygwin.
>
> IMHO, that is wine-related problem.
> <http://www.opengroup.org/onlinepubs/007904975/basedefs/math.h.html>
>
--
Ughhh... I wonder who it was that wrote:
> On Fri, 5 Sep 2003, Igor Pechtchanski wrote:
>
> > HUGE is a SVID-specific value that is equal to MAXFLOAT on my RedHat 7.3
> > box. That is *not* the same as HUGE_VAL, BTW, so I'd use MAXFLOAT
> > instead.
> >
>
> MAXFLOAT is outdated. I would suggest FLT_MAX in float.h.
As there seems to some confusion regarding this: Thus I wonder;
Is there ANY good reading on what is legacy/outdated - and what isn't!?
/Hannu E K Nevalainen, B.Sc. EE - 59°16.37'N, 17°12.60'E
--END OF MESSAGE--
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: OT? Legacy code and constants / good and portable coding (RE: Compiling Wine in Cygwin)
@ 2003-09-08 15:58 Brian Ford
0 siblings, 0 replies; 4+ messages in thread
From: Brian Ford @ 2003-09-08 15:58 UTC (permalink / raw)
To: cygwin
On Sun, 7 Sep 2003, Hannu E K Nevalainen wrote:
> Ughhh... I wonder who it was that wrote:
>
It was me.
>> On Fri, 5 Sep 2003, Igor Pechtchanski wrote:
>>
>>> HUGE is a SVID-specific value that is equal to MAXFLOAT on my RedHat
>>> 7.3 box. That is *not* the same as HUGE_VAL, BTW, so I'd use MAXFLOAT
>>> instead.
>>>
>>
>> MAXFLOAT is outdated. I would suggest FLT_MAX in float.h.
>
> As there seems to some confusion regarding this: Thus I wonder;
>
> Is there ANY good reading on what is legacy/outdated - and what isn't!?
>
Not that I am really aware of. I just went through a porting effort from
Sun Solaris to Cygwin and then to Linux. I found the above from the Linux
port while looking for a common denominator.
On my Redhat 9 box, MAXFLOAT is found in values.h that contains this
comment:
Old compatibility names for <limits.h> and <float.h> constants.
This interface is obsolete. New programs should use <limits.h> and/or
<float.h> instead of <values.h>.
float.h, on the other hand, is provided by gcc and contains IEEE
floating point standard definitions as stated by "info libc" on the same
box.
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-09-08 15:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-05 20:20 Compiling Wine in Cygwin Marcel Telka
2003-09-05 20:28 ` Igor Pechtchanski
2003-09-07 10:26 ` OT? Legacy code and constants / good and portable coding (RE: Compiling Wine in Cygwin) Hannu E K Nevalainen (garbage mail)
2003-09-08 15:58 Brian Ford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).