Changeset: bd321ca4de98 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bd321ca4de98
Modified Files:
NT/monetdb_config.h.in
configure.ag
gdk/gdk_utils.c
Branch: Nov2019
Log Message:
Making R integration happy, find size of double
diffs (36 lines):
diff --git a/NT/monetdb_config.h.in b/NT/monetdb_config.h.in
--- a/NT/monetdb_config.h.in
+++ b/NT/monetdb_config.h.in
@@ -670,6 +670,9 @@
/* The size of `char', as computed by sizeof. */
#define SIZEOF_CHAR 1
+/* The size of `double', as computed by sizeof. */
+#define SIZEOF_DOUBLE 8
+
/* The size of `int', as computed by sizeof. */
#define SIZEOF_INT 4
diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -2285,6 +2285,7 @@ AC_CHECK_SIZEOF([int])
AC_CHECK_SIZEOF([long])
AC_CHECK_SIZEOF([void *])
AC_CHECK_SIZEOF([size_t])
+AC_CHECK_SIZEOF([double])
AC_CHECK_SIZEOF([ssize_t])
AC_CHECK_SIZEOF([ptrdiff_t],,[@%:@include <stddef.h>])
AC_CHECK_SIZEOF([wchar_t],,[@%:@include <stddef.h>])
diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -641,6 +641,8 @@ GDKinit(opt *set, int setlen)
static_assert(sizeof(hge) == SIZEOF_HGE,
"error in configure: bad value for SIZEOF_HGE");
#endif
+ static_assert(sizeof(dbl) == SIZEOF_DOUBLE,
+ "error in configure: bad value for SIZEOF_DOUBLE");
static_assert(sizeof(oid) == SIZEOF_OID,
"error in configure: bad value for SIZEOF_OID");
static_assert(sizeof(void *) == SIZEOF_VOID_P,
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list