Add preprocessor macro to disable throw* definitions
authorShoaib Meenai <smeenai@fb.com>
Wed, 4 Jan 2017 18:53:21 +0000 (10:53 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 4 Jan 2017 19:02:58 +0000 (11:02 -0800)
commitdc938550557e34825c30056f916fd8eb81787076
tree6036865009f391d36379e75f24e6c9be7fd580e1
parent815100a0d3a73ff7800c588de288c66d920b0d6c
Add preprocessor macro to disable throw* definitions

Summary:
libc++ 4.0 and above define the throw* functions in `stdexcept`, so
Folly doesn't need to define them itself. In case those definitions are
backported to 3.9, add a Folly macro to skip the definitions regardless
of the libc++ version number.

Reviewed By: yfeldblum, Orvid

Differential Revision: D4378102

fbshipit-source-id: 674d98d7c448aa7e75bdd8b6e9fe965cd34a83d7
folly/portability/BitsFunctexcept.cpp
folly/portability/BitsFunctexcept.h