Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/third_party/cppformat/format.h
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
#else | #else | ||||
# define FMT_HAS_BUILTIN(x) 0 | # define FMT_HAS_BUILTIN(x) 0 | ||||
#endif | #endif | ||||
#ifndef FMT_USE_VARIADIC_TEMPLATES | #ifndef FMT_USE_VARIADIC_TEMPLATES | ||||
// Variadic templates are available in GCC since version 4.4 | // Variadic templates are available in GCC since version 4.4 | ||||
// (http://gcc.gnu.org/projects/cxx0x.html) and in Visual C++ | // (http://gcc.gnu.org/projects/cxx0x.html) and in Visual C++ | ||||
// since version 2013. | // since version 2013. | ||||
# if defined(_MSC_VER) && _MSC_VER >= 1800 | # if defined(_MSC_VER) | ||||
# define FMT_USE_VARIADIC_TEMPLATES 1 | # define FMT_USE_VARIADIC_TEMPLATES 1 | ||||
# else | # else | ||||
# define FMT_USE_VARIADIC_TEMPLATES \ | # define FMT_USE_VARIADIC_TEMPLATES \ | ||||
(FMT_HAS_FEATURE(cxx_variadic_templates) || \ | (FMT_HAS_FEATURE(cxx_variadic_templates) || \ | ||||
(FMT_GCC_VERSION >= 404 && __cplusplus >= 201103)) | (FMT_GCC_VERSION >= 404 && __cplusplus >= 201103)) | ||||
# endif | # endif | ||||
#endif | #endif | ||||
#ifndef FMT_USE_RVALUE_REFERENCES | #ifndef FMT_USE_RVALUE_REFERENCES | ||||
// Don't use rvalue references when compiling with clang and an old libstdc++ | // Don't use rvalue references when compiling with clang and an old libstdc++ | ||||
// as the latter doesn't provide std::move. | // as the latter doesn't provide std::move. | ||||
# if defined(FMT_GNUC_LIBSTD_VERSION) && FMT_GNUC_LIBSTD_VERSION <= 402 | # if defined(FMT_GNUC_LIBSTD_VERSION) && FMT_GNUC_LIBSTD_VERSION <= 402 | ||||
# define FMT_USE_RVALUE_REFERENCES 0 | # define FMT_USE_RVALUE_REFERENCES 0 | ||||
# elif defined(_MSC_VER) && _MSC_VER >= 1600 | # elif defined(_MSC_VER) | ||||
# define FMT_USE_RVALUE_REFERENCES 1 | # define FMT_USE_RVALUE_REFERENCES 1 | ||||
# else | # else | ||||
# define FMT_USE_RVALUE_REFERENCES \ | # define FMT_USE_RVALUE_REFERENCES \ | ||||
(FMT_HAS_FEATURE(cxx_rvalue_references) || \ | (FMT_HAS_FEATURE(cxx_rvalue_references) || \ | ||||
(FMT_GCC_VERSION >= 403 && __cplusplus >= 201103)) | (FMT_GCC_VERSION >= 403 && __cplusplus >= 201103)) | ||||
# endif | # endif | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 1,977 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator