diff --git a/test/posix-mock-test.cc b/test/posix-mock-test.cc index 2f30e81c..a9711c87 100644 --- a/test/posix-mock-test.cc +++ b/test/posix-mock-test.cc @@ -490,7 +490,8 @@ double _strtod_l(const char* nptr, char** endptr, _locale_t locale) { # pragma warning(pop) # endif -# if defined(__THROW) && FMT_GCC_VERSION > 0 && FMT_GCC_VERSION <= 408 +# if defined(__THROW) && \ + ((FMT_GCC_VERSION > 0 && FMT_GCC_VERSION <= 408) || defined(__e2k__)) # define FMT_LOCALE_THROW __THROW # else # define FMT_LOCALE_THROW