Commit 669b4e92 authored by Alex Samorukov's avatar Alex Samorukov

Fix "finite() is depricated" warning on macOS

(cherry picked from commit aff49550)
parent 6592671e
Pipeline #129234 passed with stages
in 27 minutes and 23 seconds
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -68,8 +68,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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment