Bug 33227

Summary: <limits.h> does not contain MAXINT on CURRENT
Product: Base System Reporter: Bruce M Simpson <bms>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Bruce M Simpson 2001-12-27 07:20:00 UTC
	<limits.h> does not contain MAXINT. This definition still resides
	in <values.h> which is marked as depracated.

Fix: 

None. Over to include file maintainer?
How-To-Repeat: 	Try compiling an application which uses <values.h> as it requires
	MAXINT. When patched to use <limits.h> instead of <values.h>, it
	will not pick up the MAXINT definition, which is still in <values.h>.

	An example of such an application is GNU Font Editor (gfe).
Comment 1 Garrett Wollman freebsd_committer freebsd_triage 2001-12-28 23:18:54 UTC
State Changed
From-To: open->closed

<limits.h> is not supposed to contain MAXINT (or MAXanything, for that matter); 
any program which expects otherwise is erroneous.  The maximum value for an 
integer is spelled INT_MAX in Standard C, and this value *is* defined in 
<limits.h>.