<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) $
Responsible Changed From-To: freebsd-standards->tjr I'll commit this patch.
Responsible Changed From-To: tjr->stefanf Originator has a commit bit now, assign PR back to him.
State Changed From-To: open->closed Committed.