Bug 64956 - [patch] <stdint.h> occasionally fails to define WINT_MIN and WINT_MAX
Summary: [patch] <stdint.h> occasionally fails to define WINT_MIN and WINT_MAX
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: 5.2-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stefan Farfeleder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-30 21:20 UTC by Stefan Farfeleder
Modified: 2004-05-18 17:07 UTC (History)
1 user (show)

See Also:


Attachments
wint_min_max.diff (4.29 KB, patch)
2004-03-30 21:20 UTC, Stefan Farfeleder
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Farfeleder 2004-03-30 21:20:17 UTC
<machine/_stdint.h> defines the macros WINT_MIN and WINT_MAX only if WCHAR_MIN
is not defined.  Including <wchar.h> defines WCHAR_MIN but not WINT_MIN and
WINT_MAX, so this is clearly wrong.  Since <machine/_stdint.h> is the only
header defining those two macros, no test at all is necessary.

How-To-Repeat: $ cat wint_min.c
#include <wchar.h>
#include <stdint.h>
int i = WINT_MIN;
$ c99 -c wint_min.c
wint_min.c:3: error: `WINT_MIN' undeclared here (not in a function)
$
Comment 1 Tim Robbins freebsd_committer freebsd_triage 2004-04-04 13:25:25 UTC
Responsible Changed
From-To: freebsd-standards->tjr

I'll commit this patch.
Comment 2 Tim Robbins freebsd_committer freebsd_triage 2004-05-17 12:54:44 UTC
Responsible Changed
From-To: tjr->stefanf

Originator has a commit bit now, assign PR back to him.
Comment 3 Stefan Farfeleder freebsd_committer freebsd_triage 2004-05-18 17:07:08 UTC
State Changed
From-To: open->closed

Committed.