From 106aa5d26bda564e4663cf02059592df2e24c46d Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 28 Mar 2019 21:46:44 -0700 Subject: [PATCH] test: augment the SDK sysroot for Windows Windows does not have `intptr_t` and `uintptr_t` defined properly. Define the types using the clang builtin types in the SDK. --- test/Inputs/clang-importer-sdk/usr/include/ctypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Inputs/clang-importer-sdk/usr/include/ctypes.h b/test/Inputs/clang-importer-sdk/usr/include/ctypes.h index 961e43be5fdf2..0d947e0b13101 100644 --- a/test/Inputs/clang-importer-sdk/usr/include/ctypes.h +++ b/test/Inputs/clang-importer-sdk/usr/include/ctypes.h @@ -170,6 +170,10 @@ typedef SInt32 OSStatus; // Types from stdint.h. #include +#if defined(_WIN32) +typedef __INTPTR_TYPE__ intptr_t; +typedef __UINTPTR_TYPE__ uintptr_t; +#endif STDLIB_TEST(__UINT8_TYPE__, uint8_t); STDLIB_TEST(__UINT16_TYPE__, uint16_t); STDLIB_TEST(__UINT32_TYPE__, uint32_t);