about summary refs log tree commit diff
path: root/absl/debugging/internal
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2019-05-27T12·08+0200
committerChristoph Cullmann <cullmann@kde.org>2019-05-29T15·01+0200
commit01033dba23e32ef76fae83be96e10a4b367b1da6 (patch)
tree5939b5577269abef250f31fbdd873cf21fbb85e7 /absl/debugging/internal
parent4adaf5490921f13028b55018c9f550277de5aebb (diff)
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.
Diffstat (limited to 'absl/debugging/internal')
-rw-r--r--absl/debugging/internal/elf_mem_image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/debugging/internal/elf_mem_image.h b/absl/debugging/internal/elf_mem_image.h
index 99b37580000e..d84200db1e1a 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 <link.h>  // for ElfW