From: Matthew Fernandez Date: Sun, 30 May 2021 16:55:14 +0000 (-0700) Subject: remove cbrt alternative implementation X-Git-Tag: 2.47.3~11^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af9ef96482a069ba5025d9d251183433f54643b2;p=graphviz remove cbrt alternative implementation The cbrt function is guaranteed to be provided in C99, with which Graphviz is now compiled. --- diff --git a/cmake/config_checks.cmake b/cmake/config_checks.cmake index 8c653038c..dc7cec3a3 100644 --- a/cmake/config_checks.cmake +++ b/cmake/config_checks.cmake @@ -24,7 +24,6 @@ check_include_file( getopt.h HAVE_GETOPT_H ) include(CheckFunctionExists) check_function_exists( drand48 HAVE_DRAND48 ) -check_function_exists( cbrt HAVE_CBRT ) check_function_exists( getpagesize HAVE_GETPAGESIZE ) check_function_exists( getenv HAVE_GETENV ) check_function_exists( lrand48 HAVE_LRAND48 ) diff --git a/config-cmake.h.in b/config-cmake.h.in index 996497b54..1b73f11d8 100644 --- a/config-cmake.h.in +++ b/config-cmake.h.in @@ -20,7 +20,6 @@ // Functions #cmakedefine HAVE_DRAND48 -#cmakedefine HAVE_CBRT #cmakedefine HAVE_GETPAGESIZE #cmakedefine HAVE_GETENV #cmakedefine HAVE_LRAND48 diff --git a/lib/pathplan/solvers.c b/lib/pathplan/solvers.c index 0a5be0260..2039d1dda 100644 --- a/lib/pathplan/solvers.c +++ b/lib/pathplan/solvers.c @@ -9,13 +9,9 @@ *************************************************************************/ -#include "config.h" #include #include -#ifndef HAVE_CBRT -#define cbrt(x) ((x < 0) ? (-1*pow(-x, 1.0/3.0)) : pow (x, 1.0/3.0)) -#endif #ifndef M_PI #define M_PI 3.14159265358979323846 #endif diff --git a/windows/include/config.h b/windows/include/config.h index 82d117343..0c32da9bb 100644 --- a/windows/include/config.h +++ b/windows/include/config.h @@ -33,9 +33,6 @@ /* Define if you have the ann library */ #define HAVE_ANN 1 -/* Define to 1 if you have the `cbrt' function. */ -//#define HAVE_CBRT 1 - /* Define to 1 if you have the `deflateBound' function. */ /* #undef HAVE_DEFLATEBOUND */