Issue Details (XML | Word | Printable)

Key: PCC-225
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Susi Lehtola
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

#include <limits.h> is not working on linux

Created: 29/Jan/11 05:02 PM   Updated: 31/Jan/11 09:00 AM
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File test.c (0.1 kB)
2. File test.preproc (23 kB)

Environment: Fedora 14 x86_64


 Description  « Hide
Related to Fred J. Tyneman's error reports on pcc-list, it seems that pcc doesn't include <limits.h> correctly.

Attached is a simple test case which compiles fine with gcc, but with pcc I get

$ pcc test.c
test.c, line 6: INT_MAX undefined

From the preprocessed source one sees that something clearly is wrong with the preprocessor and <limits.h>.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 31/Jan/11 09:00 AM
Thanks, fixed now. The int type predeclarations are inherited from cpp predefines now.