From 8d2755c55f9d8b854ef9051937ececb23c5a4b23 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 25 May 2017 08:17:42 +0100 Subject: [PATCH] Under clang-cl, include stdint.h regardless of _MSC_VER. stdint.h is one of the set of standard C headers that has more to do with the compiler than the library, and hence, clang provides its own version of it, even when you're using it in clang-cl mode with Visual Studio headers, and even when those headers are old enough not to have a stdint.h of their own. So in clang builds, including stdint.h is always the right way to get uintptr_t defined. --- windows/winstuff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/winstuff.h b/windows/winstuff.h index 10fcdaba..546c273b 100644 --- a/windows/winstuff.h +++ b/windows/winstuff.h @@ -19,7 +19,7 @@ * stddef.h. So here we try to make sure _some_ standard header is * included which defines uintptr_t. */ #include -#if !defined _MSC_VER || _MSC_VER >= 1600 +#if !defined _MSC_VER || _MSC_VER >= 1600 || defined __clang__ #include #endif