gflags_compat.h 710 B

12345678910111213141516171819
  1. // Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
  2. // This source code is licensed under both the GPLv2 (found in the
  3. // COPYING file in the root directory) and Apache 2.0 License
  4. // (found in the LICENSE.Apache file in the root directory).
  5. #include <gflags/gflags.h>
  6. #ifndef GFLAGS_NAMESPACE
  7. // in case it's not defined in old versions, that's probably because it was
  8. // still google by default.
  9. #define GFLAGS_NAMESPACE google
  10. #endif
  11. #ifndef DEFINE_uint32
  12. // DEFINE_uint32 does not appear in older versions of gflags. This should be
  13. // a sane definition for those versions.
  14. #define DEFINE_uint32(name, val, txt) \
  15. DEFINE_VARIABLE(GFLAGS_NAMESPACE::uint32, U, name, val, txt)
  16. #endif