Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Dec 2015 18:23:55 +1100 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Garrett Cooper <ngie@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r292004 - head/lib/libc/stdio
Message-ID:  <20151209181941.U828@besplex.bde.org>
In-Reply-To: <201512082247.tB8MlsCA089831@repo.freebsd.org>
References:  <201512082247.tB8MlsCA089831@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 8 Dec 2015, Garrett Cooper wrote:

> Author: ngie
> ...
>
> Log:
>  Fix compilation when -DDEBUG is defined by adding inttypes.h #include
>  for intmax_t

Wrong include.  intmax_t is declared in <stdint.h>.  <inttypes.h> declares
much more and is usually only needed for functions like strtoimax().
<inttypes.h> also declares PRI* and SCN*, but those are only needed in
the garbage.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151209181941.U828>