Re: 11.0-CURRENT -r276514: lib/libpjdlog/pjdlog.c has stdarg.h after printf.h

2015-03-22 Thread Dimitry Andric
On 22 Mar 2015, at 03:45, Mark Millard mar...@dsl-only.net wrote: ... Looking at the sources suggests that stdarg.h is explicitly in the #include sequence too late to guarantee va_args a definition at the point of its use in #include printf.h : stdarg.h is #include'd in pjdlog.c in the line

Re: 11.0-CURRENT -r276514: lib/libpjdlog/pjdlog.c has stdarg.h after printf.h

2015-03-22 Thread Mark Millard
Dimitry Adnric wrote: You should be able to include standard headers (or at least, headers in /usr/include) in any order, and printf.h includes stdio.h, which then defines the correct types. Another of the ANSI/ISO-C rules is: You must include a standard header before you refer to anything

11.0-CURRENT -r276514: lib/libpjdlog/pjdlog.c has stdarg.h after printf.h

2015-03-21 Thread Mark Millard
Basic context (more details later): # freebsd-version -ku; uname -apKU 11.0-CURRENT 11.0-CURRENT FreeBSD FBSDG5C0 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r279514M: Sat Mar 21 05:15:23 PDT 2015 root@FBSDG5C0:/usr/obj/usr/srcC/sys/GENERIC64vtsc-NODEBUG powerpc powerpc64 1100062 1100062