Use #if rather than #ifdef for FOLLY_HAVE_WEAK_SYMBOLS
authorPeter Griess <pgriess@fb.com>
Wed, 29 Jan 2014 17:46:29 +0000 (09:46 -0800)
committerDave Watson <davejwatson@fb.com>
Fri, 21 Feb 2014 21:40:49 +0000 (13:40 -0800)
commit02747b6d336ec11a57f713bfd372c8c4d8cb5ef4
tree11a969ad0a4e0009d4b6230ff8efdffe1ebc81c2
parent13550f968e5a78677f0d29b30110df36889f7476
Use #if rather than #ifdef for FOLLY_HAVE_WEAK_SYMBOLS

Summary:
- We need to be able to disable FOLLY_HAVE_WEAK_SYMBOLS via
-DFOLLY_HAVE_WEAK_SYMBOLS=0. Switch the #ifdef checks to #if.

Test Plan:
- fbconfig -r folly && fbmake runtests
- Build in fbobjc

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D1150036
folly/detail/Malloc.cpp
folly/detail/Malloc.h