blob: 7c4b35692e244ca96d81c3e61855abd2eab0b4be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Why is this patch needed?
--- libgimp/gimp.c.orig 2025-05-17 22:51:03 UTC
+++ libgimp/gimp.c
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
+#include <fenv.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
@@ -348,6 +349,9 @@ gimp_main (GType plug_in_type,
gimp_env_init (TRUE);
progname = argv[ARG_PROGNAME];
+
+ /* Ignore floating point exceptions */
+ fedisableexcept(FE_ALL_EXCEPT);
basename = g_path_get_basename (progname);
|