Commit d150b5b7 authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot 5

Add a dummy FlagSaver class.

Summary: Add a declaration to mock out FlagSaver on platforms that don't support gflags.

Reviewed By: ivmaykov, yfeldblum

Differential Revision: D3620421

fbshipit-source-id: c1047f34f384f34276b18f53e966a65cdd5c8075
parent 808e54f2
...@@ -58,6 +58,11 @@ ...@@ -58,6 +58,11 @@
FOLLY_DEFINE_FLAG(unsigned long long, U64, _name, _default) FOLLY_DEFINE_FLAG(unsigned long long, U64, _name, _default)
#define DEFINE_string(_name, _default, _description) \ #define DEFINE_string(_name, _default, _description) \
FOLLY_DEFINE_FLAG(std::string, S, _name, _default) FOLLY_DEFINE_FLAG(std::string, S, _name, _default)
namespace google {
class FlagSaver {};
}
#else #else
#include <gflags/gflags.h> #include <gflags/gflags.h>
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment