Subject: misc/3437: Redefinition of DBL_MAX
To: None <gnats-bugs@gnats.netbsd.org>
From: None <darcy@druid.net>
List: netbsd-bugs
Date: 04/02/1997 10:46:22
>Number:         3437
>Category:       misc
>Synopsis:       DBL_MAX (and others) get redefined when float.h and limits.h included
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr  2 07:50:02 1997
>Last-Modified:
>Originator:     D'Arcy J.M. Cain
>Organization:
D'Arcy Cain Consulting
D'Arcy J.M. Cain                           |  Democracy is three wolves
darcy@{druid.net|vex.net}                  |  and a sheep voting on         
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.
                --  http://www.druid.net/darcy  --                       
>Release:        NetBSD-current 1.2D Apr 2, 1997
>Environment:
	
System: NetBSD druid.net 1.2D NetBSD 1.2D (DRUID) #2: Sun Mar 23 17:31:33 EST 1997 root@druid.net:/usr/src/sys/arch/i386/compile/DRUID i386


>Description:
	When both float.h and limits.h are included, a few constants are
	redefined - basically the ones in limits.h get repeated in float.h.
>How-To-Repeat:
	Include both float.h and limits.h in the same file and look at the warnings.
>Fix:
	There should probably be some ifdefs bracketing the constants in
	question.  Problem is that it would have to be surrounding things in
	both headers and that would have to be repeated for all ports since
	both of these files are port specific.  Perhaps a third file could be
	created that would be included by both.  This has the added benefit of
	keeping this information in one place rather than in duplicating it.
	
>Audit-Trail:
>Unformatted: