fmt.h 825 B

123456789101112131415161718192021222324252627282930
  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. #include <spdlog/tweakme.h>
  11. #if defined(SPDLOG_USE_STD_FORMAT) // SPDLOG_USE_STD_FORMAT is defined - use std::format
  12. #include <format>
  13. #elif !defined(SPDLOG_FMT_EXTERNAL)
  14. #if !defined(SPDLOG_COMPILED_LIB) && !defined(FMT_HEADER_ONLY)
  15. #define FMT_HEADER_ONLY
  16. #endif
  17. #ifndef FMT_USE_WINDOWS_H
  18. #define FMT_USE_WINDOWS_H 0
  19. #endif
  20. #include <spdlog/fmt/bundled/core.h>
  21. #include <spdlog/fmt/bundled/format.h>
  22. #else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
  23. #include <fmt/core.h>
  24. #include <fmt/format.h>
  25. #endif