Break dependency on endian.h
authorOwen Yamauchi <oyamauchi@fb.com>
Fri, 3 May 2013 19:16:14 +0000 (12:16 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 20 May 2013 18:01:27 +0000 (11:01 -0700)
commite49f2768b32028b9b64243b783624bd7d37ec6dd
tree95dac3ba67d9df83cf8f076a6e5bb74fa4662676
parent29ad1ec90ccf41d985a69de6c59f0fde1a9e4502
Break dependency on endian.h

Summary:
gcc and clang both give you these three macros pre-defined. I've found a
reference on the interweb to this being broken
(http://gcc.gnu.org/ml/gcc/2011-08/msg00152.html) but that was with gcc
4.4. I've tested with 4.6, 4.7 and clang 3.2 and they all do the right
thing on little-endian (internal build and OS X). Alas, I don't have a
big-endian system handy to test with.

Test Plan: fbconfig/fbmake runtests.

Reviewed By: simpkins@fb.com

FB internal diff: D799416
folly/Bits.h
folly/experimental/EliasFanoCoding.h
folly/experimental/symbolizer/Elf.cpp
folly/test/EndianTest.cpp