From fead75fd52acec0c7a4b6a6e39a25d3de8fbedc2 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Wed, 12 Aug 2015 16:46:09 -0700 Subject: [PATCH] Fix gcc build failure (define __has_builtin). --- include/jemalloc/internal/util.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/jemalloc/internal/util.h b/include/jemalloc/internal/util.h index c23e4ac6..b2ea740f 100644 --- a/include/jemalloc/internal/util.h +++ b/include/jemalloc/internal/util.h @@ -60,6 +60,9 @@ #define JEMALLOC_GNUC_PREREQ(major, minor) \ (!defined(__clang__) && \ (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))) +#ifndef __has_builtin +# define __has_builtin(builtin) (0) +#endif #define JEMALLOC_CLANG_HAS_BUILTIN(builtin) \ (defined(__clang__) && __has_builtin(builtin))