From ab634c1bbbe9ca229af840462b63a5f23ab24a09 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Mon, 31 Aug 2009 22:00:05 -0400 Subject: [PATCH] Turns out we needed that long_double_t type after all. --- dist/aclocal/types.m4 | 6 ++++++ src/dbsql.in | 1 + 2 files changed, 7 insertions(+) diff --git a/dist/aclocal/types.m4 b/dist/aclocal/types.m4 index 12b6bab..5cef60e 100644 --- a/dist/aclocal/types.m4 +++ b/dist/aclocal/types.m4 @@ -124,6 +124,7 @@ AC_CHECK_SIZEOF(unsigned long,, $db_includes) AC_CHECK_SIZEOF(long long,, $db_includes) AC_CHECK_SIZEOF(unsigned long long,, $db_includes) AC_CHECK_SIZEOF(char *,, $db_includes) +AC_CHECK_SIZEOF(long double,, $db_includes) # We look for u_char, u_short, u_int, u_long -- if we can't find them, # we create our own. @@ -172,6 +173,11 @@ AC_SUBST(int64_decl) AC_CHECK_TYPE(int64_t,, [AM_SEARCH_SSIZES(int64_decl, int64_t, 8, notfatal)], $db_includes) +AC_SUBST(long_double_decl) +AC_CHECK_TYPE(long double, + [long_double_decl="typedef long double long_double_t;"], + [long_double_decl="typedef long double long_double_t;"], $db_includes) + # No currently autoconf'd systems lack FILE, off_t pid_t, size_t, time_t. # # We require them, we don't try to substitute our own if we can't find them. diff --git a/src/dbsql.in b/src/dbsql.in index 89abce2..f7af9dd 100644 --- a/src/dbsql.in +++ b/src/dbsql.in @@ -75,6 +75,7 @@ extern "C" { @u_int_decl@ @u_long_decl@ @ssize_t_decl@ +@long_double_decl@ /* * Forward structure declarations, so we can declare pointers and