fix build on: define own version of ALLOCM_LG_ALIGN
authorLucian Grijincu <lucian@fb.com>
Thu, 30 Aug 2012 03:19:19 +0000 (20:19 -0700)
committerJordan DeLong <jdelong@fb.com>
Mon, 17 Sep 2012 01:27:55 +0000 (18:27 -0700)
commitf2f512b45cf346e3d505c22d98d381436933c441
treefa06cb2ce22cada1806f21823327f7a2b262b788
parent3dd18cd9a51cdcec3ffbd1a5211355564341d544
fix build on: define own version of ALLOCM_LG_ALIGN

Summary:
On --platform=gcc-4.6.2-glibc-2.13-fb the build would fail because

fbcode/third-party/gcc-4.6.2-glibc-2.13-fb/libgcc/libgcc-4.6.2/b4e37bb/include/c++/4.6.2/bits/basic_fbstring_malloc.h

defines it's own version of ALLOCM_SUCCESS & co., but not ALLOCM_LG_ALIGN :(

The '#ifdef ALLOCM_SUCCESS' check in 'folly/Malloc.h' would pass even
though we didn't include jemalloc.

Test Plan: build it

Reviewed By: philipp@fb.com

FB internal diff: D562273
folly/Malloc.h