From: Christopher Dykes Date: Fri, 15 Jul 2016 21:00:33 +0000 (-0700) Subject: Assume GFlags isn't present if FOLLY_HAVE_LIBGFLAGS isn't defined X-Git-Tag: 2016.07.26~47 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f3c02cfc375500e7a082c75896d888a0fcd1f3c4;p=folly.git Assume GFlags isn't present if FOLLY_HAVE_LIBGFLAGS isn't defined Summary: Because, if it follows the same pattern as a normal config flag, it simply won't be defined if it isn't available. Reviewed By: yfeldblum Differential Revision: D3571862 fbshipit-source-id: 3322ceb0ce349de16b29310b66d1333aa04da516 --- diff --git a/folly/portability/GFlags.h b/folly/portability/GFlags.h index 87739bb9..9d88a408 100644 --- a/folly/portability/GFlags.h +++ b/folly/portability/GFlags.h @@ -18,7 +18,7 @@ #include -#if defined(FOLLY_HAVE_LIBGFLAGS) && (FOLLY_HAVE_LIBGFLAGS == 0) +#if !FOLLY_HAVE_LIBGFLAGS // glog/logging.h is dependent on this implementation detail // being defined otherwise it undefines all of this -_-.... //