adding include check

This commit is contained in:
2024-12-04 14:35:54 +01:00
parent 57a7b10850
commit 92d060fc70

View File

@@ -36,7 +36,6 @@
#include <set> #include <set>
#include <cstddef> #include <cstddef>
#include <cstdlib> #include <cstdlib>
#include <format>
#include <random> #include <random>
#include <concepts> #include <concepts>
#include <algorithm> #include <algorithm>
@@ -51,6 +50,15 @@
#include <ostream> #include <ostream>
#include <ranges> #include <ranges>
// Experimentals
#if __has_include(<format>)
#include <format>
#elif __has_include(<experimental/format>)
#include <experimental/format>
#else
#error <format> header not present in this STL
#endif
#ifndef MLX_PLAT_WINDOWS #ifndef MLX_PLAT_WINDOWS
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif