Commit 35022f29 authored by Eric Niebler's avatar Eric Niebler Committed by Facebook Github Bot

some versions of gcc don't have __has_builtin

fbshipit-source-id: d46faae4572b04c4352b79b18c647a0bce689a66
parent a05ea8e6
......@@ -17,8 +17,11 @@ namespace detail {
struct placeholder;
#if (defined(__clang__) || defined(__GNUC__)) &&\
__has_builtin(__type_pack_element)
#ifndef __has_builtin
#define __has_builtin(x) 0
#endif
#if __has_builtin(__type_pack_element)
#define PUSHMI_TYPE_PACK_ELEMENT(...) \
__type_pack_element<__VA_ARGS__>
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment