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
extern "C" {
-#ifndef FOLLY_HAVE_WEAK_SYMBOLS
+#if !FOLLY_HAVE_WEAK_SYMBOLS
int (*rallocm)(void**, size_t*, size_t, size_t, int) = nullptr;
int (*allocm)(void**, size_t*, size_t, int) = nullptr;
#endif
extern "C" {
-#ifdef FOLLY_HAVE_WEAK_SYMBOLS
+#if FOLLY_HAVE_WEAK_SYMBOLS
int rallocm(void**, size_t*, size_t, size_t, int) __attribute__((weak));
int allocm(void**, size_t*, size_t, int) __attribute__((weak));
#else