mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
adding include check
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
#include <set>
|
||||
#include <cstddef>
|
||||
#include <cstdlib>
|
||||
#include <format>
|
||||
#include <random>
|
||||
#include <concepts>
|
||||
#include <algorithm>
|
||||
@@ -51,6 +50,15 @@
|
||||
#include <ostream>
|
||||
#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
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user