[sanitizers] Fix building on 32 bit Windows after 7256c05ecb7
authorMartin Storsjö <martin@martin.st>
Mon, 16 Aug 2021 08:50:10 +0000 (11:50 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 17 Aug 2021 18:36:09 +0000 (21:36 +0300)
On 32 bit, 'long' (which is 32 bit on Windows) is used as base
type for SIZE_T and similar.

Differential Revision: https://reviews.llvm.org/D108191

compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h

index 45165f6..4adb387 100644 (file)
@@ -139,7 +139,7 @@ namespace __sanitizer {
 typedef unsigned long long uptr;
 typedef signed long long sptr;
 #else
-#  if (SANITIZER_WORDSIZE == 64) || SANITIZER_MAC
+#  if (SANITIZER_WORDSIZE == 64) || SANITIZER_MAC || SANITIZER_WINDOWS
 typedef unsigned long uptr;
 typedef signed long sptr;
 #  else