feat: improved automatic mode of MP_UNITS_API_STD_FORMAT

This commit is contained in:
Mateusz Pusz
2024-04-18 17:38:11 +01:00
parent 832cba8134
commit c8b535cf4c

View File

@@ -38,9 +38,13 @@
#endif #endif
#if !defined MP_UNITS_API_STD_FORMAT || !MP_UNITS_API_STD_FORMAT #if defined MP_UNITS_API_STD_FORMAT && !MP_UNITS_API_STD_FORMAT
#if __has_include(<fmt/format.h>) #define MP_UNITS_USE_FMTLIB 1
#elif !defined MP_UNITS_API_STD_FORMAT
#if !__has_include(<format>) && __has_include(<fmt/format.h>)
#define MP_UNITS_USE_FMTLIB 1 #define MP_UNITS_USE_FMTLIB 1
#endif #endif