Skip to content

Commit 106aa5d

Browse files
committed
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.
1 parent 8e773ab commit 106aa5d

File tree

1 file changed

+4
-0
lines changed
  • test/Inputs/clang-importer-sdk/usr/include

1 file changed

+4
-0
lines changed

test/Inputs/clang-importer-sdk/usr/include/ctypes.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ typedef SInt32 OSStatus;
170170

171171
// Types from stdint.h.
172172
#include <stdint.h>
173+
#if defined(_WIN32)
174+
typedef __INTPTR_TYPE__ intptr_t;
175+
typedef __UINTPTR_TYPE__ uintptr_t;
176+
#endif
173177
STDLIB_TEST(__UINT8_TYPE__, uint8_t);
174178
STDLIB_TEST(__UINT16_TYPE__, uint16_t);
175179
STDLIB_TEST(__UINT32_TYPE__, uint32_t);

0 commit comments

Comments
 (0)