soft float systems do not define these macros under musl. Fixes: Ticket7102
Unified · Split
| @@ -1085,10 +1085,12 @@ static int func_eval_expr_int_format(AVFilterContext *ctx, AVBPrint *bp, · 1084 unmodified lines | ||
| 1085 | 1085 | |
| 1086 | 1086 | feclearexcept(FE_ALL_EXCEPT); |
| 1087 | 1087 | intval = res; |
| 1088 | +#if defined(FE_INVALID) && defined(FE_OVERFLOW) && defined(FE_UNDERFLOW) | |
| 1088 | 1089 | if ((ret = fetestexcept(FE_INVALID|FE_OVERFLOW|FE_UNDERFLOW))) { |
| 1089 | 1090 | av_log(ctx, AV_LOG_ERROR, "Conversion of floating-point result to int failed. Control register: 0x%08x. Conversion result: %d\n", ret, intval); |
| 1090 | 1091 | return AVERROR(EINVAL); |
| 1091 | 1092 | } |
| 1093 | +#endif | |
| 1092 | 1094 | |
| 1093 | 1095 | if (argc == 3) |
| 1094 | 1096 | av_strlcatf(fmt_str, sizeof(fmt_str), "0%u", positions); |