Use #if rather than #ifdef to check autoconf guards.
authorPeter Griess <pgriess@fb.com>
Mon, 7 Oct 2013 15:38:11 +0000 (08:38 -0700)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:47:07 +0000 (18:47 -0700)
commit85064d3d24c90a3b836c2c3280ad38761943450b
tree3e34ee5cff6a3bedc13f7234898ccdb5729e1da1
parent6f3352378fe7effd50c2b7496f11348f27449977
Use #if rather than #ifdef to check autoconf guards.

Summary:
- Replace instances of '#ifdef FOLLY_*' guards with '#if FOLLY_*'. This
allows the configuration system to disable the guard by defining the
value to 0 using the -D compiler flag.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: delong.j@fb.com

FB internal diff: D999129
folly/FileUtil.cpp
folly/FileUtil.h
folly/Malloc.h
folly/Portability.h
folly/io/RecordIO.cpp
folly/small_vector.h
folly/test/FileUtilTest.cpp