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 c3ec81242155c4e2ad8f81bceb1d970566b89b2c..db2ce0d4fa5fe96f6a2cfd0bdb319a04493ea38b 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 0aa35ae1e5a99951ecbcc226756413e2ec6ee8d0..9f305c626db9ca4ce4f3907e5931dc71a708e828 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