summaryrefslogtreecommitdiff
path: root/snappy_test_tool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'snappy_test_tool.cc')
-rw-r--r--snappy_test_tool.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/snappy_test_tool.cc b/snappy_test_tool.cc
index 24ac1ee..a7c779b 100644
--- a/snappy_test_tool.cc
+++ b/snappy_test_tool.cc
@@ -66,7 +66,7 @@ namespace snappy {
namespace {
-#if defined(HAVE_FUNC_MMAP) && defined(HAVE_FUNC_SYSCONF)
+#if HAVE_FUNC_MMAP && HAVE_FUNC_SYSCONF
// To test against code that reads beyond its input, this class copies a
// string to a newly allocated group of pages, the last of which
@@ -112,7 +112,7 @@ class DataEndingAtUnreadablePage {
size_t size_;
};
-#else // defined(HAVE_FUNC_MMAP) && defined(HAVE_FUNC_SYSCONF)
+#else // HAVE_FUNC_MMAP && HAVE_FUNC_SYSCONF
// Fallback for systems without mmap.
using DataEndingAtUnreadablePage = std::string;