Index: lib/asan/asan_new_delete.cc =================================================================== --- lib/asan/asan_new_delete.cc +++ lib/asan/asan_new_delete.cc @@ -70,8 +70,8 @@ } // namespace std //quick fix for debug windows builds. -#ifdef SANITIZER_WINDOWS && DEBUG - #define MemalignFromLocalPool(x,y) nullptr +#if SANITIZER_WINDOWS && defined(DEBUG) +#define MemalignFromLocalPool(x,y) nullptr #endif // TODO(alekseyshl): throw std::bad_alloc instead of dying on OOM.