Cleanup macro definitions

This commit is contained in:
Victor Zverovich
2025-09-07 07:44:49 -07:00
parent 84b9c00711
commit 609188cb92

View File

@@ -60,21 +60,20 @@
# endif # endif
#endif #endif
// For older Xcode versions, __cpp_lib_xxx flags are inaccurately defined. #ifdef FMT_CPP_LIB_FILESYSTEM
#ifndef FMT_CPP_LIB_FILESYSTEM // Use the provided definition.
# ifdef __cpp_lib_filesystem #elif defined(__cpp_lib_filesystem)
# define FMT_CPP_LIB_FILESYSTEM __cpp_lib_filesystem # define FMT_CPP_LIB_FILESYSTEM __cpp_lib_filesystem
# else #else
# define FMT_CPP_LIB_FILESYSTEM 0 # define FMT_CPP_LIB_FILESYSTEM 0
# endif
#endif #endif
#ifndef FMT_CPP_LIB_VARIANT #ifdef FMT_CPP_LIB_VARIANT
# ifdef __cpp_lib_variant // Use the provided definition.
# define FMT_CPP_LIB_VARIANT __cpp_lib_variant #elif defined(__cpp_lib_variant)
# else # define FMT_CPP_LIB_VARIANT __cpp_lib_variant
# define FMT_CPP_LIB_VARIANT 0 #else
# endif # define FMT_CPP_LIB_VARIANT 0
#endif #endif
FMT_BEGIN_NAMESPACE FMT_BEGIN_NAMESPACE