]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Include stdint.h (where available) for uintptr_t.
authorSimon Tatham <anakin@pobox.com>
Mon, 28 Sep 2015 18:52:38 +0000 (19:52 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 28 Sep 2015 18:52:38 +0000 (19:52 +0100)
commit675a5baa0f3a9f67474e4f19bc195a0939bbf443
tree90ca9cb5bae9e1edbb1f8b5deafd06e3e4b73d9c
parentacff0a6fa3c5eaa505422b1861efc93b948ede5b
Include stdint.h (where available) for uintptr_t.

Commit f2e61275f introduced the use of uintptr_t, without adding an
include of <stdint.h> which is where the C standard says that type
should be defined. This didn't cause a build failure, because Visual
Studio also defines it in <stddef.h> which we do include. But a user
points out that other Windows toolchains - e.g. MinGW - don't
necessarily do the same.

I can't add an unconditional include of <stdint.h>, because the VS I
use for the current official builds doesn't have that header at all.
So I conditionalise it out for old VS; if it needs throwing out for
any other toolchain, I'll add further conditions as reports come in.
windows/winstuff.h