Don't typedef intptr_t/uintptr_t when PAL_STDCPP_COMPAT is defined (#21165)
authorIlia <ki.stfu@gmail.com>
Mon, 3 Dec 2018 15:25:24 +0000 (18:25 +0300)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 3 Dec 2018 15:25:24 +0000 (16:25 +0100)
Bug: 20766

src/pal/inc/pal.h
src/pal/inc/pal_mstypes.h

index c3ec812..db2ce0d 100644 (file)
@@ -41,6 +41,7 @@ Abstract:
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#include <stdint.h>
 #include <string.h>
 #include <errno.h>
 #include <ctype.h>
index 0aa35ae..9f305c6 100644 (file)
@@ -586,12 +586,6 @@ typedef LONG_PTR LPARAM;
 
 #ifdef PAL_STDCPP_COMPAT
 
-#ifdef BIT64
-typedef unsigned long int uintptr_t;
-#else // !BIT64
-typedef unsigned int uintptr_t;
-#endif // !BIT64
-
 typedef char16_t WCHAR;
 
 #else // PAL_STDCPP_COMPAT