[gimp/gimp-2-10] Fix "finite() is depricated" warning on macOS
- From: Alex Samorukov <asamorukov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] Fix "finite() is depricated" warning on macOS
- Date: Wed, 6 Nov 2019 16:04:49 +0000 (UTC)
commit aff49550ee7cdbc6ccf5b6c042fc30a19c386aad
Author: Oleksii Samorukov <samm os2 kiev ua>
Date: Wed Nov 6 17:04:35 2019 +0100
Fix "finite() is depricated" warning on macOS
app/core/gimp-transform-resize.c | 5 +++--
app/core/gimpcurve-map.c | 5 +++--
app/core/gimpdrawable-transform.c | 5 +++--
app/pdb/image-cmds.c | 5 +++--
4 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/app/core/gimp-transform-resize.c b/app/core/gimp-transform-resize.c
index 50e44d6f4a..2200c20c88 100644
--- a/app/core/gimp-transform-resize.c
+++ b/app/core/gimp-transform-resize.c
@@ -30,8 +30,9 @@
#include "gimp-transform-utils.h"
#include "gimp-utils.h"
-
-#if defined (HAVE_FINITE)
+#ifdef PLATFORM_OSX
+#define FINITE(x) isfinite(x)
+#elif defined (HAVE_FINITE)
#define FINITE(x) finite(x)
#elif defined (HAVE_ISFINITE)
#define FINITE(x) isfinite(x)
diff --git a/app/core/gimpcurve-map.c b/app/core/gimpcurve-map.c
index 604d4ecb5d..9de96a92f7 100644
--- a/app/core/gimpcurve-map.c
+++ b/app/core/gimpcurve-map.c
@@ -29,8 +29,9 @@
#include "gimpcurve.h"
#include "gimpcurve-map.h"
-
-#if defined (HAVE_FINITE)
+#ifdef PLATFORM_OSX
+#define FINITE(x) isfinite(x)
+#elif defined (HAVE_FINITE)
#define FINITE(x) finite(x)
#elif defined (HAVE_ISFINITE)
#define FINITE(x) isfinite(x)
diff --git a/app/core/gimpdrawable-transform.c b/app/core/gimpdrawable-transform.c
index 9cbedfdba2..40a7274ce6 100644
--- a/app/core/gimpdrawable-transform.c
+++ b/app/core/gimpdrawable-transform.c
@@ -50,8 +50,9 @@
#include "gimp-intl.h"
-
-#if defined (HAVE_FINITE)
+#ifdef PLATFORM_OSX
+#define FINITE(x) isfinite(x)
+#elif defined (HAVE_FINITE)
#define FINITE(x) finite(x)
#elif defined (HAVE_ISFINITE)
#define FINITE(x) isfinite(x)
diff --git a/app/pdb/image-cmds.c b/app/pdb/image-cmds.c
index 96925e1b4b..7e85869b9b 100644
--- a/app/pdb/image-cmds.c
+++ b/app/pdb/image-cmds.c
@@ -69,8 +69,9 @@
#include "gimp-intl.h"
-
-#if defined (HAVE_FINITE)
+#ifdef PLATFORM_OSX
+#define FINITE(x) isfinite(x)
+#elif defined (HAVE_FINITE)
#define FINITE(x) finite(x)
#elif defined (HAVE_ISFINITE)
#define FINITE(x) isfinite(x)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]