Subject: misc/3437: Redefinition of DBL_MAX
To: None <>
From: None <>
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
>Originator:     D'Arcy J.M. Cain
D'Arcy Cain Consulting
D'Arcy J.M. Cain                           |  Democracy is three wolves
darcy@{|}                  |  and a sheep voting on         
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.
                --  --                       
>Release:        NetBSD-current 1.2D Apr 2, 1997
System: NetBSD 1.2D NetBSD 1.2D (DRUID) #2: Sun Mar 23 17:31:33 EST 1997 i386

	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.
	Include both float.h and limits.h in the same file and look at the warnings.
	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.