From 01033dba23e32ef76fae83be96e10a4b367b1da6 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 27 May 2019 14:08:25 +0200 Subject: [PATCH] avoid use of undefined ABSL_HAVE_ELF_MEM_IMAGE this avoids e.g. on macOS: In file included from abseil-cpp/absl/debugging/internal/elf_mem_image.cc:18: abseil-cpp/absl/debugging/internal/elf_mem_image.h:37:5: error: 'ABSL_HAVE_ELF_MEM_IMAGE' is not defined, evaluates to 0 [-Werror,-Wundef] ^ 1 error generated. --- absl/debugging/internal/elf_mem_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/absl/debugging/internal/elf_mem_image.h b/absl/debugging/internal/elf_mem_image.h index 99b37580..d84200db 100644 --- a/absl/debugging/internal/elf_mem_image.h +++ b/absl/debugging/internal/elf_mem_image.h @@ -34,7 +34,7 @@ #define ABSL_HAVE_ELF_MEM_IMAGE 1 #endif -#if ABSL_HAVE_ELF_MEM_IMAGE +#ifdef ABSL_HAVE_ELF_MEM_IMAGE #include // for ElfW