From f3c02cfc375500e7a082c75896d888a0fcd1f3c4 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Fri, 15 Jul 2016 14:00:33 -0700 Subject: [PATCH] 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 --- folly/portability/GFlags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -_-.... // -- 2.34.1