X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Fportability%2FGFlags.h;h=48bd125da73655fe1cd5b478c71369f7cf68c26b;hb=cffc8a776b21a070f0af6ed0748452c329ad6e5f;hp=6f0b1d51819759f5dfd72192355d161ccc575269;hpb=b609f8ee96bac031e30970215bb625a99dc01a68;p=folly.git diff --git a/folly/portability/GFlags.h b/folly/portability/GFlags.h index 6f0b1d51..48bd125d 100644 --- a/folly/portability/GFlags.h +++ b/folly/portability/GFlags.h @@ -1,5 +1,5 @@ /* - * Copyright 2016 Facebook, Inc. + * Copyright 2017 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,9 +16,9 @@ #pragma once -#if FOLLY_HAVE_LIBGFLAGS -#include -#else +#include + +#if !FOLLY_HAVE_LIBGFLAGS // glog/logging.h is dependent on this implementation detail // being defined otherwise it undefines all of this -_-.... // @@ -58,4 +58,11 @@ FOLLY_DEFINE_FLAG(unsigned long long, U64, _name, _default) #define DEFINE_string(_name, _default, _description) \ FOLLY_DEFINE_FLAG(std::string, S, _name, _default) + +namespace google { +class FlagSaver {}; +} + +#else +#include #endif