From 2e6f78ac878c0103017dc540c7421c2f0e692177 Mon Sep 17 00:00:00 2001 From: michalbiesek <39981869+michalbiesek@users.noreply.github.com> Date: Thu, 27 Jun 2019 09:33:04 +0200 Subject: [PATCH] cc_mm use OS_DARWIN macro to detect OS (#194) --- src/cc_mm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cc_mm.c b/src/cc_mm.c index ef4ed349a..8fa28f980 100644 --- a/src/cc_mm.c +++ b/src/cc_mm.c @@ -24,8 +24,7 @@ #include #include -/* TODO(yao): detect OS in one place and use one variable everywhere */ -#if defined(__APPLE__) && defined(__MACH__) +#ifdef OS_DARWIN # define MAP_ANONYMOUS MAP_ANON #include #define malloc_usable_size malloc_size