Fix gcc build failure (define __has_builtin).

This commit is contained in:
Jason Evans 2015-08-12 16:46:09 -07:00
parent 7928f62273
commit fead75fd52

View File

@ -60,6 +60,9 @@
#define JEMALLOC_GNUC_PREREQ(major, minor) \ #define JEMALLOC_GNUC_PREREQ(major, minor) \
(!defined(__clang__) && \ (!defined(__clang__) && \
(__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))) (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))))
#ifndef __has_builtin
# define __has_builtin(builtin) (0)
#endif
#define JEMALLOC_CLANG_HAS_BUILTIN(builtin) \ #define JEMALLOC_CLANG_HAS_BUILTIN(builtin) \
(defined(__clang__) && __has_builtin(builtin)) (defined(__clang__) && __has_builtin(builtin))