Hi, I am working on this TODO item:
* Consider allowing 64-bit integers and floats to be passed by value on 64-bit platforms Also change 32-bit floats (float4) to be passed by value at the same time. For genbki.sh, to correctly determine whether HAVE_LONG_INT_64 is defined, the attached bugfix is needed in the configure.in machinery. This way the pg_config.h actually conforms to the comments for HAVE_LONG_INT_64 and HAVE_LONG_LONG_INT_64. Best regards, Zoltán Böszörményi -- ---------------------------------- Zoltán Böszörményi Cybertec Schönig & Schönig GmbH http://www.postgresql.at/
diff -dcrpN pgsql.orig/config/c-compiler.m4 pgsql/config/c-compiler.m4 *** pgsql.orig/config/c-compiler.m4 2008-02-18 13:49:56.000000000 +0100 --- pgsql/config/c-compiler.m4 2008-03-11 11:00:30.000000000 +0100 *************** AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_ *** 62,68 **** Ac_define=$Ac_cachevar if test x"$Ac_cachevar" = xyes ; then ! AC_DEFINE(Ac_define,, [Define to 1 if `]$1[' works and is 64 bits.]) fi undefine([Ac_define])dnl undefine([Ac_cachevar])dnl --- 62,68 ---- Ac_define=$Ac_cachevar if test x"$Ac_cachevar" = xyes ; then ! AC_DEFINE(Ac_define, 1, [Define to 1 if `]$1[' works and is 64 bits.]) fi undefine([Ac_define])dnl undefine([Ac_cachevar])dnl diff -dcrpN pgsql.orig/configure pgsql/configure *** pgsql.orig/configure 2008-03-02 13:44:42.000000000 +0100 --- pgsql/configure 2008-03-11 11:01:34.000000000 +0100 *************** HAVE_LONG_INT_64=$pgac_cv_type_long_int_ *** 19608,19614 **** if test x"$pgac_cv_type_long_int_64" = xyes ; then cat >>confdefs.h <<\_ACEOF ! #define HAVE_LONG_INT_64 _ACEOF fi --- 19608,19614 ---- if test x"$pgac_cv_type_long_int_64" = xyes ; then cat >>confdefs.h <<\_ACEOF ! #define HAVE_LONG_INT_64 1 _ACEOF fi *************** HAVE_LONG_LONG_INT_64=$pgac_cv_type_long *** 19741,19747 **** if test x"$pgac_cv_type_long_long_int_64" = xyes ; then cat >>confdefs.h <<\_ACEOF ! #define HAVE_LONG_LONG_INT_64 _ACEOF fi --- 19741,19747 ---- if test x"$pgac_cv_type_long_long_int_64" = xyes ; then cat >>confdefs.h <<\_ACEOF ! #define HAVE_LONG_LONG_INT_64 1 _ACEOF fi
-- Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches