[postgis-tickets] r17008 - Remove ISFINITE macros
Raul
raul at rmr.ninja
Tue Nov 13 03:10:08 PST 2018
Author: algunenano
Date: 2018-11-13 03:10:07 -0800 (Tue, 13 Nov 2018)
New Revision: 17008
Modified:
trunk/configure.ac
trunk/liblwgeom/g_box.c
trunk/postgis/gserialized_estimate.c
trunk/postgis/gserialized_gist_2d.c
trunk/postgis/gserialized_gist_nd.c
trunk/postgis_config.h.in
Log:
Remove ISFINITE macros
No longer needed since gnu99 is mandatory
Closes #4234
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2018-11-13 10:49:06 UTC (rev 17007)
+++ trunk/configure.ac 2018-11-13 11:10:07 UTC (rev 17008)
@@ -165,26 +165,6 @@
AC_FUNC_FSEEKO()
dnl
-dnl First see if we have isfinite in basic header
-dnl then check to see if it's a GNU extension
-dnl
-AC_CHECK_DECL(isfinite,
- [AC_DEFINE([HAVE_ISFINITE])],
- [],
- [#include <math.h>])
-
-dnl Clear the cache
-unset ac_cv_have_decl_isfinite
-
-AC_CHECK_DECL(isfinite,
- AC_DEFINE([HAVE_GNU_ISFINITE]),
- [],
- [[
- #define _GNU_SOURCE
- #include <math.h>
- ]])
-
-dnl
dnl MingW requires use of pwd -W to give proper Windows (not MingW) paths
dnl for in-place regression tests
dnl
Modified: trunk/liblwgeom/g_box.c
===================================================================
--- trunk/liblwgeom/g_box.c 2018-11-13 10:49:06 UTC (rev 17007)
+++ trunk/liblwgeom/g_box.c 2018-11-13 11:10:07 UTC (rev 17008)
@@ -27,14 +27,6 @@
#include <stdlib.h>
#include <math.h>
-/* Fall back to older finite() if necessary */
-#ifndef HAVE_ISFINITE
-# ifdef HAVE_GNU_ISFINITE
-# define _GNU_SOURCE
-# else
-# define isfinite finite
-# endif
-#endif
GBOX* gbox_new(uint8_t flags)
{
Modified: trunk/postgis/gserialized_estimate.c
===================================================================
--- trunk/postgis/gserialized_estimate.c 2018-11-13 10:49:06 UTC (rev 17007)
+++ trunk/postgis/gserialized_estimate.c 2018-11-13 11:10:07 UTC (rev 17008)
@@ -124,16 +124,6 @@
/************************************************************************/
-/* Fall back to older finite() if necessary */
-#ifndef HAVE_ISFINITE
-# ifdef HAVE_GNU_ISFINITE
-# define _GNU_SOURCE
-# else
-# define isfinite finite
-# endif
-#endif
-
-
/* Prototypes */
Datum gserialized_gist_joinsel(PG_FUNCTION_ARGS);
Datum gserialized_gist_joinsel_2d(PG_FUNCTION_ARGS);
Modified: trunk/postgis/gserialized_gist_2d.c
===================================================================
--- trunk/postgis/gserialized_gist_2d.c 2018-11-13 10:49:06 UTC (rev 17007)
+++ trunk/postgis/gserialized_gist_2d.c 2018-11-13 11:10:07 UTC (rev 17008)
@@ -50,14 +50,6 @@
#include "lwgeom_pg.h" /* For debugging macros. */
#include "gserialized_gist.h" /* For utility functions. */
-/* Fall back to older finite() if necessary */
-#ifndef HAVE_ISFINITE
-# ifdef HAVE_GNU_ISFINITE
-# define _GNU_SOURCE
-# else
-# define isfinite finite
-# endif
-#endif
#include <float.h> /* For FLT_MAX */
Modified: trunk/postgis/gserialized_gist_nd.c
===================================================================
--- trunk/postgis/gserialized_gist_nd.c 2018-11-13 10:49:06 UTC (rev 17007)
+++ trunk/postgis/gserialized_gist_nd.c 2018-11-13 11:10:07 UTC (rev 17008)
@@ -50,15 +50,6 @@
#include <assert.h>
-/* Fall back to older finite() if necessary */
-#ifndef HAVE_ISFINITE
-#ifdef HAVE_GNU_ISFINITE
-#define _GNU_SOURCE
-#else
-#define isfinite finite
-#endif
-#endif
-
/*
** When is a node split not so good? If more than 90% of the entries
** end up in one of the children.
Modified: trunk/postgis_config.h.in
===================================================================
--- trunk/postgis_config.h.in 2018-11-13 10:49:06 UTC (rev 17007)
+++ trunk/postgis_config.h.in 2018-11-13 11:10:07 UTC (rev 17008)
@@ -29,8 +29,6 @@
/* Define for some functions we are interested in */
#undef HAVE_VASPRINTF
#undef HAVE_ASPRINTF
-#undef HAVE_ISFINITE
-#undef HAVE_GNU_ISFINITE
#undef HAVE_FSEEKO
#undef HAVE_STRCASESTR
More information about the postgis-tickets
mailing list