fmt.h 1004 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // Copyright(c) 2016-2018 Gabi Melman.
  3. // Distributed under the MIT License (http://opensource.org/licenses/MIT)
  4. //
  5. #pragma once
  6. //
  7. // Include a bundled header-only copy of fmtlib or an external one.
  8. // By default spdlog include its own copy.
  9. //
  10. #if defined(SPDLOG_USE_STD_FORMAT) // SPDLOG_USE_STD_FORMAT is defined - use std::format
  11. # include <format>
  12. #elif !defined(SPDLOG_FMT_EXTERNAL)
  13. # if !defined(SPDLOG_COMPILED_LIB) && !defined(FMT_HEADER_ONLY)
  14. # define FMT_HEADER_ONLY
  15. # endif
  16. # ifndef FMT_USE_WINDOWS_H
  17. # define FMT_USE_WINDOWS_H 0
  18. # endif
  19. // enable the 'n' flag in for backward compatibility with fmt 6.x
  20. # define FMT_DEPRECATED_N_SPECIFIER
  21. // enable ostream formatting for backward compatibility with fmt 8.x
  22. # define FMT_DEPRECATED_OSTREAM
  23. # include <spdlog/fmt/bundled/core.h>
  24. # include <spdlog/fmt/bundled/format.h>
  25. #else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
  26. # include <fmt/core.h>
  27. # include <fmt/format.h>
  28. #endif