Fix compilation for libc++ 3.9
authorShoaib Meenai <smeenai@fb.com>
Wed, 21 Sep 2016 15:07:33 +0000 (08:07 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Wed, 21 Sep 2016 15:08:31 +0000 (08:08 -0700)
commit60d9f8475af7b4cfca379279cc7dd3fe2ed83c1c
tree6387789e4aa32bddb48ad8f00bb71b9c241b38b1
parent992ac3ae3d854a6f30fa3d39d337ff1ef3c860ea
Fix compilation for libc++ 3.9

Summary:
libc++ 3.9 and above define the __throw* functions inside stdexcept, so
defining them ourselves leads to compilation errors when compiling
against libc++ 3.9. Add appropriate preprocessor guards to avoid this.

Reviewed By: meyering

Differential Revision: D3898284

fbshipit-source-id: 435a28c2b3a83ee4d8f5af0df0343c524469011e
folly/portability/BitsFunctexcept.cpp
folly/portability/BitsFunctexcept.h