Commit 33df73e7 authored by Morten Welinder's avatar Morten Welinder

Compilation: namespace cleanup for floating point stuff.

parent ec90c07d
......@@ -560,9 +560,6 @@ AC_CHECK_FUNCS(mkfifo)
LIBS="$SAVE_LIBS"
unset SAVE_LIBS
dnl Either of these seem to signal IEEE754 math, see mathfunc.c
AC_CHECK_HEADERS(ieeefp.h ieee754.h)
AC_HEADER_SYS_WAIT
dnl Check for some functions
......
......@@ -20,15 +20,6 @@
/* Define if the long double type is to be used */
#undef GNM_WITH_LONG_DOUBLE
/* Define to 1 if you have the <ieeefp.h> header file. */
#undef HAVE_IEEEFP_H
/* Define to 1 if you have the <ieee754.h> header file. */
#undef HAVE_IEEE754_H
/* Define to 1 if you have the <sunmath.h> header file. */
#undef HAVE_SUNMATH_H
/* Define to 1 if you have the `lgamma' function. */
#undef HAVE_LGAMMA
......
......@@ -47,13 +47,10 @@
#include <glib/gstdio.h>
#include <value.h>
#if defined (HAVE_IEEEFP_H) || defined (HAVE_IEEE754_H)
/* Make sure we have this symbol defined, since the existance of either
header file implies it. */
/* R code wants this, so provide it. */
#ifndef IEEE_754
#define IEEE_754
#endif
#endif
#define M_LN_SQRT_2PI GNM_const(0.918938533204672741780329736406) /* log(sqrt(2*pi)) */
#define M_SQRT_32 GNM_const(5.656854249492380195206754896838) /* sqrt(32) */
......
......@@ -7,13 +7,10 @@
G_BEGIN_DECLS
/* WARNING : Any preprocessor conditionals in here must also be placed in libspreadsheet-config.h */
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
#ifdef HAVE_IEEE754_H
#include <ieee754.h>
#endif
/*
* WARNING: Any preprocessor conditionals in here must also be placed
* in gnumeric-features.h.in
*/
#ifndef HAVE_LGAMMA
/* Defined in mathfunc.c */
......@@ -27,10 +24,6 @@ double lgamma_r (double x, int *signp);
#ifdef GNM_WITH_LONG_DOUBLE
#ifdef HAVE_SUNMATH_H
#include <sunmath.h>
#endif
typedef long double gnm_float;
#ifdef HAVE_ERFL
......
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