#ifndef COMPAT_FORMAT_H
#define COMPAT_FORMAT_H

#if __cplusplus >= 202002L

#include <format>

#else // __cplusplus < 202002L

// Define FMT_FORMAT_H externally to force a difference location for {fmt}
#ifndef FMT_FORMAT_H
#define FMT_FORMAT_H "fmt/format.h"
#endif

#define FMT_HEADER_ONLY
#include FMT_FORMAT_H

namespace std
{
	using fmt::format;
	using fmt::format_to;
	using fmt::format_to_n;
}

#endif // __cplusplus

#endif // COMPAT_FORMAT_H
