mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Don't define FMT_GCC_VERSION on clang
This commit is contained in:
@ -30,7 +30,7 @@
|
|||||||
# define FMT_HAS_INCLUDE(x) 0
|
# define FMT_HAS_INCLUDE(x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
# define FMT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
||||||
#else
|
#else
|
||||||
# define FMT_GCC_VERSION 0
|
# define FMT_GCC_VERSION 0
|
||||||
@ -966,7 +966,7 @@ class arg_store {
|
|||||||
public:
|
public:
|
||||||
static const uint64_t TYPES;
|
static const uint64_t TYPES;
|
||||||
|
|
||||||
#if FMT_GCC_VERSION && FMT_GCC_VERSION <= 405 && !defined(__clang__)
|
#if FMT_GCC_VERSION && FMT_GCC_VERSION <= 405
|
||||||
// Workaround an array initialization bug in gcc 4.5 and earlier.
|
// Workaround an array initialization bug in gcc 4.5 and earlier.
|
||||||
arg_store(const Args &... args) {
|
arg_store(const Args &... args) {
|
||||||
data_ = {internal::make_arg<IS_PACKED, Context>(args)...};
|
data_ = {internal::make_arg<IS_PACKED, Context>(args)...};
|
||||||
|
Reference in New Issue
Block a user