mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
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.
This commit is contained in:
parent
2e66a0d260
commit
8d2755c55f
@ -19,7 +19,7 @@
|
||||
* stddef.h. So here we try to make sure _some_ standard header is
|
||||
* included which defines uintptr_t. */
|
||||
#include <stddef.h>
|
||||
#if !defined _MSC_VER || _MSC_VER >= 1600
|
||||
#if !defined _MSC_VER || _MSC_VER >= 1600 || defined __clang__
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user