The cbrt function is guaranteed to be provided in C99, with which Graphviz is
now compiled.
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 )
// Functions
#cmakedefine HAVE_DRAND48
-#cmakedefine HAVE_CBRT
#cmakedefine HAVE_GETPAGESIZE
#cmakedefine HAVE_GETENV
#cmakedefine HAVE_LRAND48
*************************************************************************/
-#include "config.h"
#include <math.h>
#include <pathplan/solvers.h>
-#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
/* 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 */