Add FOLLY_HAS_BUILTIN and use it
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 26 Jul 2017 08:51:44 +0000 (01:51 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 26 Jul 2017 09:06:56 +0000 (02:06 -0700)
commitccb206fc8942f3450708f2d0d6b459d54cf881f1
tree59ee46fd0ed1fbe7d891bef638ff49e6228b774d
parentc815830fdb18d1b27bbd9bc883f16935759c0a64
Add FOLLY_HAS_BUILTIN and use it

Summary:
[Folly] Add `FOLLY_HAS_BUILTIN` and use it.

Use it in the definition of `folly::launder`. Of course, since GCC does not have `__has_builtin`, we still have to check its version.

Reviewed By: WillerZ

Differential Revision: D5496748

fbshipit-source-id: 3bd6e89424dfd2c9cb9795ee4d88f66c4294cc4c
folly/CPortability.h
folly/Launder.h