Index: third_party/base/logging.h |
diff --git a/third_party/base/logging.h b/third_party/base/logging.h |
index 98ed9c5da0059d40ccd26d82fd2a0468053da4c9..bf4faea57e08fd9ca75e1b7933327e8cee5612c1 100644 |
--- a/third_party/base/logging.h |
+++ b/third_party/base/logging.h |
@@ -8,10 +8,17 @@ |
#include <assert.h> |
#include <stdlib.h> |
-#define CHECK(condition) \ |
- if (!(condition)) { \ |
- abort(); \ |
- *(reinterpret_cast<volatile char*>(NULL) + 42) = 0x42; \ |
+#ifndef _WIN32 |
+#define NULL_DEREF_IF_POSSIBLE \ |
+ *(reinterpret_cast<volatile char*>(NULL) + 42) = 0x42; |
+#else |
+#define NULL_DEREF_IF_POSSIBLE |
+#endif |
+ |
+#define CHECK(condition) \ |
+ if (!(condition)) { \ |
+ abort(); \ |
+ NULL_DEREF_IF_POSSIBLE \ |
} |
#define NOTREACHED() assert(false) |