Commit aff49550 authored by Alex Samorukov's avatar Alex Samorukov

Fix "finite() is depricated" warning on macOS

parent 03b78e97
Pipeline #129230 passed with stages
in 16 minutes and 54 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)
......
......@@ -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)
......
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