plugify 1.2.8
Loading...
Searching...
No Matches
format.hpp
1#pragma once
2
3#include "plg/config.hpp"
4
5#if __has_include(<format>)
6#include <format>
7#if defined(__cpp_lib_format) && __cpp_lib_format >= 201907L
8#define PLUGIFY_HAS_STD_FORMAT 1
9#else
10#define PLUGIFY_HAS_STD_FORMAT 0
11#endif
12#else
13#define PLUGIFY_HAS_STD_FORMAT 0
14#endif
15
16#if !PLUGIFY_HAS_STD_FORMAT
17
18// Define FMT_FORMAT_H externally to force a difference location for {fmt}
19#ifndef FMT_FORMAT_H
20#define FMT_FORMAT_H <fmt/format.h>
21#endif
22
23#ifndef FMT_HEADER_ONLY
24#define FMT_HEADER_ONLY
25#endif
26#include FMT_FORMAT_H
27
28namespace std {
29 using namespace fmt;
30 using namespace fmt::detail;
31} // namespace std
32
33#endif // !PLUGIFY_HAS_STD_FORMAT