Fix usage of SK_BUILD_* defines.
authortfarina <tfarina@chromium.org>
Mon, 6 Oct 2014 17:46:50 +0000 (10:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 6 Oct 2014 17:46:51 +0000 (10:46 -0700)
commit6b87df2997980218308954ade47df7fdd6680bc7
tree492da565c06966435b40c50bffebeae9c12faad6
parent8d56e27ef5d734b4579325be86da6c3ab682345c
Fix usage of SK_BUILD_* defines.

Since we just 'define' them, but not attribute anything to them, like
'1' for example, cpp expands it to nothing and that breaks the "#if"
clauses.

To fix that, uses "#if defined(...)" which will correctly check if your
macro name was defined or not.

BUG=skia:2850
TEST=make most
R=robertphillips@google.com

Review URL: https://codereview.chromium.org/628763005
dm/DMWriteTask.cpp
src/core/SkUtilsArm.cpp
tools/skdiff.h
tools/skpdiff/SkCLImageDiffer.h
tools/skpdiff/skpdiff_main.cpp
tools/skpdiff/skpdiff_util.cpp
tools/skpdiff/skpdiff_util.h