maint(cpp): use correct macro detection for format feature (#87)

This commit is contained in:
Edo 2023-03-06 11:34:13 +00:00 committed by GitHub
parent f6ae955f34
commit e05d853ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,10 @@
#pragma once
#include <cstdio>
#include <algorithm>
#include <array>
#include <deque>
#include <filesystem>
#include <fstream>
#include <functional>
@ -16,7 +18,6 @@
#include <map>
#include <memory>
#include <queue>
#include <deque>
#include <regex>
#include <set>
#include <sstream>
@ -26,8 +27,9 @@
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <version>
#if _WIN32
#ifdef __cpp_lib_format
#include <format>
namespace fmt = std;
#else